Lorsqu'il est git commit
ouvert, l'éditeur de message affiche un bref statut, quelque chose comme ceci:
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
# Your branch is ahead of 'origin/master' by 26 commits.
#
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: Showcase/src/com/gigantt/BorderArea.mxml
# modified: Showcase/src/com/gigantt/Client.mxml
# modified: Showcase/src/com/gigantt/GraphItem.mxml
#
Comment puis-je modifier git pour afficher également le diff à valider? Je suis conscient que cela peut être une longue différence, mais quand même ... si utile.
git diff --cached
produit, mais pourquoi exécuter une commande distincte si vous le souhaitez à chaque fois?