Skip to content

Commit

Permalink
git: use the --git-dir to find commit messages
Browse files Browse the repository at this point in the history
This works better for worktrees (where the common dir doesn't contain
the right message file).
  • Loading branch information
benknoble committed Nov 12, 2024
1 parent e0c0482 commit 3e7c76d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion links/gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
bv = branch -vva
ca = commit --all
cc = commit
cce = !git commit --edit --file="$(git rev-parse --git-common-dir)"/COMMIT_EDITMSG
cce = !git commit --edit --file="$(git rev-parse --git-dir)"/COMMIT_EDITMSG
ce = config --edit
changed = diff --name-only
cm = commit --message
Expand Down

0 comments on commit 3e7c76d

Please sign in to comment.