Details
-
Type:
Story
-
Status: Done
-
Priority:
(None)
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 3.17.0
-
Component/s: Masterfiles Policy Framework (MPF/COPBL/STDLIB)
-
Labels:None
Description
Not all versions of git support inclusion of untracked files when stashing.
For example, it's not available in version 1.7.1
# git --version git version 1.7.1 # git stash --help | grep "\--include-untracked" # echo $? 1
But it is available in 2.25.1:
> $ git --version git version 2.25.1 > $ git stash --help | grep "\--include-untracked" [-u|--include-untracked] [-a|--all] [-m|--message <message>] push [-p|--patch] [-k|--[no-]keep-index] [-u|--include-untracked] [-a|--all] [-q|--quiet] If the --include-untracked option is used, all untracked files are also stashed and then save [-p|--patch] [-k|--[no-]keep-index] [-u|--include-untracked] [-a|--all] [-q|--quiet]
It would be nice if untracked files were included in the stash only when it's able.