Skip to content

Commit

Permalink
Merge pull request #83 from mattneub/add-index-to-stash-snapshot
Browse files Browse the repository at this point in the history
Add --index to stash snapshot
  • Loading branch information
joelparkerhenderson committed May 31, 2022
2 parents 502ffd0 + 279a91c commit 3bb75d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/examples/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Preserving:
Git alias:

```git
snapshot = !git stash push "snapshot: $(date)" && git stash apply "stash@{0}"
snapshot = !git stash push "snapshot: $(date)" && git stash apply "stash@{0}" --index
archive = !"f() { top=$(rev-parse --show-toplevel); cd $top; tar cvf $top.tar $top ; }; f"
```
Expand Down
2 changes: 1 addition & 1 deletion doc/git-snapshot/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Git alias:

```git
snapshot = !git stash push --include-untracked --message \"snapshot: $(date)\" && git stash apply \"stash@{0}\"
snapshot = !git stash push --include-untracked --message \"snapshot: $(date)\" && git stash apply \"stash@{0}\" --index
```

Example:
Expand Down
2 changes: 1 addition & 1 deletion gitalias.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@
#
# And seemingly no changes to your working tree.
#
snapshot = !git stash push --include-untracked --message \"snapshot: $(date)\" && git stash apply \"stash@{0}\"
snapshot = !git stash push --include-untracked --message \"snapshot: $(date)\" && git stash apply \"stash@{0}\" --index
# When you're a little worried that the world is coming to an end
panic = !tar cvf ../panic.tar *
Expand Down

0 comments on commit 3bb75d8

Please sign in to comment.