Author |
Topic |
|
dmayola
Junior Member
Spain
13 Posts |
|
feline
Whole Tomato Software
United Kingdom
19021 Posts |
Posted - Mar 18 2022 : 07:17:00 AM
|
The idea is interesting, I have opened a feature request to keep an eye on it:
case=147954
but what happens if you are not using git as your source control system? Not everyone does after all.
VA its self isn't going to know the login details for git, so it won't have permission by its self to issue this command. |
zen is the art of being at one with the two'ness |
|
|
dmayola
Junior Member
Spain
13 Posts |
Posted - Mar 22 2022 : 05:16:43 AM
|
You can probably check if you are in a git repository (for instance, git status will fail if you are not in one), and a checkbox in VS settings wouldn't hurt, just in case someone doesn't want to use it. Also, regarding permissions, I don't think it's a problem, I wouldn't expect VA to commit my files right away, just make sure VA renames it using git mv. So, I can commit it manually later. |
|
|
feline
Whole Tomato Software
United Kingdom
19021 Posts |
Posted - Mar 22 2022 : 08:41:06 AM
|
I don't use git, so this might be a stupid question, but don't you need to know some more details than just the file name, like the repository it maps to? Or are you guaranteed no overlap? |
zen is the art of being at one with the two'ness |
|
|
dmayola
Junior Member
Spain
13 Posts |
Posted - Mar 24 2022 : 05:07:26 AM
|
You don't need to know about the repository since this data is already stored in your local folder, under .git folder. Names can be duplicated as far they are not in the same folder, the same as a regular filesystem, and in case you do a git mv current_file.txt new_file.txt where new_file.txt already exists, it will report an error fatal: destination exists |
|
|
feline
Whole Tomato Software
United Kingdom
19021 Posts |
Posted - Mar 24 2022 : 09:51:28 AM
|
Useful to know, thank you, I have added a note about this to the case. |
zen is the art of being at one with the two'ness |
|
|
|
Topic |
|