소스 검색

Have git hint with actual diff when committing

Git will add the actual diff to the message displayed in the editor.
This allows to consult better what was actually done and to make use of
code completion features like that of Vim.

Note that with --amend (`cma` alias) the behavior is that the final
diff is shown, i.e. not just the amendment.

Also it's intentionally not used by default message aliases as these
are intended for express and/or ad-hoc commits (so far).
Alois Mahdal 9 년 전
부모
커밋
e6640da4f0
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      dotfiles/gittum/main.gitconfig

+ 2
- 2
dotfiles/gittum/main.gitconfig 파일 보기

@@ -5,8 +5,8 @@
5 5
 [alias]
6 6
   ap = !clear && git add --patch
7 7
   br = branch
8
-  cm = commit
9
-  cma = commit --amend
8
+  cm = commit --verbose
9
+  cma = commit --verbose --amend
10 10
   cmf = !sh -c \
11 11
         'git commit --edit --message=\"$(~/.gittum/bin/findcat msg_flake8)\"'
12 12
   cmt = !sh -c \