-
Notifications
You must be signed in to change notification settings - Fork 61
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
no changes detected when files are only added #153
Comments
Hi Balz Thanks for reaching out for this! :) I will keep this open and make some tests with it. Could probably take some time (since I dont have much free time nor a testing workspace). |
diff has the nice property of a changing exit code depending on whether there are changes or not. status doesn't have that I believe, so is harder to work with. I tried out option 2 and found no problems migrating a ~400 change set repo. If you want I can make a pull request. |
Sure, would be glad if you make a pull request. As I said probably take some time until I can merge it. |
git diff
is used to determine whether there are any changes.git diff
is empty if only new, untracked files are added. This halts the migration process and asks the user for input.I suggest one of the following solutions:
git status
instead ofgit diff
.git add -A
, thengit diff --cached
, i.e. stage earlier.The text was updated successfully, but these errors were encountered: