Community
Participate
Working Groups
When implementing a new feature, the normal workflow typically includes creation of new source files. Now git stash helps to quickly switch between branches by suspending and resuming the current work. The most normal use case (100% for me) is to stash all files, including untracked files. (Permanently untracked files should be in a .gitignore definition anyway because you don't want to handle them in every commit.) I've been missing to tick that checkbox a hundred times. Would it be possible to check "Include untracked files" in the "Commit Stash" window by default or to make it configurable?
I too am facing this problem multiple times a week. Would be nice to have it checked by default.
+1, the default should be changed in my opinion as well!
New Gerrit change created: https://git.eclipse.org/r/151015
While I'm fine with the suggestion, there is yet an alternative: Leave the default unchecked for new installations, but remember the checkbox value in the preferences and use the same as last time (if the preference value exists). That would lead to the user needing to check it one time on purpose (and would therefore avoid surprises for existing users) and then have it checked all the time. Just to be clear: I do not suggest a new visible git preference on the preference pages, just storing the value in the preference store.
I amended the current change set with the preference based solution. Please let me know if there is anything I missed.
Gerrit change https://git.eclipse.org/r/151015 was merged to [master]. Commit: http://git.eclipse.org/c/egit/egit.git/commit/?id=0756f4d648f24ef07e4c3ad0230dbb332ec26308