tig icon indicating copy to clipboard operation
tig copied to clipboard

Show untracked files with a stash that includes them

Open blueyed opened this issue 10 years ago • 3 comments

When using git stash [-u|--include-untracked] to create a stash, the untracked files are not displayed with tig stash.

According to http://stackoverflow.com/a/12681856/15690 they are stored in the 3rd parent of the stash commit, e.g. stash@{0}^3.

It would be nice if tig would display them.

blueyed avatar Oct 03 '15 14:10 blueyed

I think the best would be to present "a stash" similar to the status view with three sections, so instead of a diff subview it would be a status subview, where diff can then be shown for each section or files. This would also fix #328.

jonas avatar Oct 03 '15 18:10 jonas

Perhaps as a temporary solution we could just have Tig append the diff of untracked files at the end of the modified files? It's a little misleading to see nothing for stashes that only have untracked files in them.

moll avatar Mar 25 '18 13:03 moll

It's also easy to lose stashed, untracked files. It'd be really nice to have them listed so we can see at a glance if the untracked files we're looking for are in the stash.

nickspoons avatar Aug 11 '21 20:08 nickspoons

I assume that, by now, everyone needing this feature is using git config --global stash.showIncludeUntracked true that was introduced since the issue was created and that it can be closed.

koutcher avatar Dec 30 '22 11:12 koutcher