瀏覽代碼

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 \