Po git commitotwarciu edytor wiadomości pokazuje krótki status, na przykład:
# 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
#
Jak mogę dostosować git, aby pokazać również różnicę, która ma zostać zatwierdzona? Zdaję sobie sprawę, że może to być długa różnica, ale nadal… bardzo przydatna.
git diff --cachedtworzy go, ale po co uruchamiać osobne polecenie, jeśli chcesz go za każdym razem?