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:
Talia 2021-07-08 12:25:08 +02:00
parent 0233dccd1e
commit a5e91b70ab

View file

@ -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