Quando è git commit
aperto, l'editor dei messaggi mostra un breve stato, qualcosa del genere:
# 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
#
Come posso modificare git per mostrare anche il diff da impegnare? Sono consapevole che potrebbe essere una differenza lunga, ma comunque .. così utile.
git diff --cached
produce, ma perché eseguire un comando separato se lo desideri ogni volta?