-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vcsh rename: Renaming a repository fails to rename or re-whitelist the corresponding ".gitignore.d" file #163
Comments
Please give https://github.com/RichiH/vcsh/tree/fix/rename_gitignore_gitattributes a try. Since the files themselves are not touched by the rename, this should do everything you need. |
Awesome. You caught the need to rename the corresponding
Likewise, would it be feasible to print a non-fatal warning recommending that the user manually re-whitelist Otherwise, this looks fabulous! Thanks for the fast reply, Rich. |
Nice! Intuitively, that strikes me as a sensible solution. Rich's would work too, of course; but we'd might as well strike a few pending issues with one blow, right? Also, I know I'm pedantically hammering this – but it'd be great "...to print a non-fatal warning recommending that the user manually re-whitelist |
Hmm. @leycec, in master right now My understanding is that once a file is being tracked by git, the gitignore |
@guyhughes Ah! Quite right. I'm all for elegant solutions, and that seems to fit the bill. Since your pull request already addresses this and any future complaint I could possibly concoct, you know everything. I unreservedly give a thumbs up. |
Seems a duplicate of #37 |
When renaming an existing repository from
old_repo
tonew_repo
, the"vcsh rename old_repo new_repo"
command currently fails to rename and re-whitelist the corresponding.gitignore
file (if any) from~/.gitignore.d/old_repo
to~/.gitignore.d/new_repo
.Apologies if this issue has already been noted. My Google-fu is supremely lacking.
Side Effects
Unsurprisingly, this has a number of unfortunate side effects. After the repository rename:
~/.gitignore.d/old_repo
to~/.gitignore.d/new_repo
,~/.gitignore.d/new_repo
will itself be ignored until the user manually re-whitelists that file (e.g., by changing the line resembling"!/.gitignore.d/old_repo"
to read"!/.gitignore.d/new_repo"
).Possible Solutions
Automating both the file rename and re-whitelisting appears feasible... but probably non-trivial. Until someone scripts up a robust solution for this, it'd be awesome if the
vcsh rename
subcommand could at least be revised to:~/.gitignore.d/old_repo
file.~/.gitignore.d/new_repo
.In Synopsis
Thanks for the omnipresent effort, Rich and crew.
vcsh
is simple greatness, and you all are the reason why. Hamsters for all! 🐹The text was updated successfully, but these errors were encountered: