gitslave icon indicating copy to clipboard operation
gitslave copied to clipboard

Appends existing data to .gitslave and .gitignore

Open reggi opened this issue 10 years ago • 3 comments

I would love .gitslave to be a little smarter about saving this data when it's not needed, especially because it commits for you.

reggi avatar Aug 12 '15 07:08 reggi

@reggi: how do you mean "when it's not needed"? Do you mean that you hand-edit the .gitslave and .gitignore then gits attach or something?

joelpurra avatar Aug 12 '15 08:08 joelpurra

Nope. Here's an explication, If I run the following twice

gits attach https://github.com/joelpurra/gitslave.git gitslave

I'll end up with a .gitignore that has.

/gitslave/
/gitslave/

and a .gitslave with

https://github.com/joelpurra/gitslave.git gitslave
https://github.com/joelpurra/gitslave.git gitslave

Behavior should be, if line exists do nothing, if not add it.

reggi avatar Aug 12 '15 08:08 reggi

@reggi: you're right. This should be reported upstream, but please check if it has already been reported first.

I'll leave this issue open. Pull requests are welcome!

joelpurra avatar Aug 12 '15 09:08 joelpurra