I'm using the following command to list all my commits:
git log --oneline --graph --decorate --all
This shows only one entry for my stashes. This entry is at the position of the the last commit from which I started a stash.
Is it also possible to show each stash at it parent commit?
Say I have the following git-log:
* 063b893 (HEAD, master) first commit
* 4e6efb9 initial commit
After adding a stash:
* 51eb834 (refs/stash) WIP on master: 063b893 first commit
|\
| * dfafaaf index on master: 063b893 first commit
|/
* 063b893 (HEAD, master) first commit
* 4e6efb9 initial commit
After adding a second stash (Problem 1: only the last stash is shown):
* 1e9b384 (refs/stash) WIP on master: 063b893 first commit
|\
| * 4862a3d index on master: 063b893 first commit
|/
* 063b893 (HEAD, master) first commit
* 4e6efb9 initial commit
After adding a second commit, stash is still show in the correct position:
* c09a3fc (HEAD, master) second commit
| * 1e9b384 (refs/stash) WIP on master: 063b893 first commit
| |\
|/ /
| * 4862a3d index on master: 063b893 first commit
|/
* 063b893 first commit
* 4e6efb9 initial commit
After adding another stash and commit (Problem 2: stashes that were made directly after first commit
are not shown. The only stash shown is after second commit
):
* d86c140 (HEAD, master) third commit
| * 4efd3e0 (refs/stash) WIP on master: c09a3fc second commit
| |\
|/ /
| * 5065abe index on master: c09a3fc second commit
|/
* c09a3fc second commit
* 063b893 first commit
* 4e6efb9 initial commit
I'd expected to see:
* d86c140 (HEAD, master) third commit
| * 4efd3e0 (refs/stash) WIP on master: c09a3fc second commit
| |\
|/ /
| * 5065abe index on master: c09a3fc second commit
|/
* c09a3fc second commit
| * 1e9b384 (refs/stash) WIP on master: 063b893 first commit
| * 51eb834 (refs/stash) WIP on master: 063b893 first commit
| |\
|/ /
| * 4862a3d index on master: 063b893 first commit
|/
* 063b893 first commit
* 4e6efb9 initial commit