From 0c91574dff7d8e3aa2e836423f085c2166aabac9 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 15 Feb 2026 17:24:57 +0900 Subject: git: fix last-merge-commit With this change, "git last-merge-commit" works correctly even if the current working tree has a file or directory named "HEAD". --- .config/git/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.config/git/config') diff --git a/.config/git/config b/.config/git/config index 4763b50..bc29078 100644 --- a/.config/git/config +++ b/.config/git/config @@ -176,7 +176,7 @@ cpick = cherry-pick cpickc = "!GIT_EDITOR=true git cherry-pick --continue" empty = commit --allow-empty - last-merge-commit = "!git rev-list --abbrev-commit --merges HEAD | head -n 1" + last-merge-commit = "!git rev-list --abbrev-commit --merges HEAD -- | head -n 1" config-user = "!__fn() { \ if [ \"$1\" = nsfisis ]; then \ git config user.name nsfisis && git config user.email nsfisis@gmail.com; \ -- cgit v1.3-1-g0d28