Restrict git fixup to edited files in last commit
By default, git fixup will now only consider files that have been edited in the last commit. Other files can still be added manually by simply listing them on the commandline.
This commit is contained in:
parent
0233dccd1e
commit
a5e91b70ab
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@
|
|||
stat = log --oneline --stat --date-order
|
||||
identity = "! git config user.name \"$(git config user.$1.name)\"; git config user.email \"$(git config user.$1.email)\"; :"
|
||||
root = rev-parse --show-toplevel
|
||||
fixup = commit --patch --no-edit --amend
|
||||
fixup = "!git commit --patch --no-edit --amend $(git diff --name-only HEAD~1..HEAD)"
|
||||
ts = timeshift
|
||||
task = "! TASKDATA=$(git rev-parse --show-toplevel)/.git/task task"
|
||||
track = add --intent-to-add
|
||||
|
|
Loading…
Reference in a new issue