Explorar el Código

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 hace 10 años
padre
commit
e6640da4f0
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      dotfiles/gittum/main.gitconfig

+ 2
- 2
dotfiles/gittum/main.gitconfig Ver fichero

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