aboutsummaryrefslogtreecommitdiff
path: root/log-tree.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2008-10-01 18:31:25 -0400
committerShawn O. Pearce <spearce@spearce.org>2008-10-02 17:08:16 -0700
commitc85db254d9d3309bb330444385dbb3b7be5100d3 (patch)
tree73689016d0e5d1f478843e05b21d09bb6d1546b5 /log-tree.c
parent72c69ebc035efe08aef03866184aa9b344814d93 (diff)
downloadgit-c85db254d9d3309bb330444385dbb3b7be5100d3.tar.gz
git-c85db254d9d3309bb330444385dbb3b7be5100d3.tar.xz
reformat informational commit message
When committing, we print a message like: Created [DETACHED commit] <hash> (<subject>) on <branch> The most useful bit of information there (besides the detached status, if it is present) is which branch you made the commit on. However, it is sometimes hard to see because the subject dominates the line. Instead, let's put the most useful information (detached status and commit branch) on the far left, with the subject (which is least likely to be interesting) on the far right. We'll use brackets to offset the branch name so the line is not mistaken for an error line of the form "program: some sort of error". E.g.,: [jk/bikeshed] created bd8098f: "reformat informational commit message" Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'log-tree.c')
0 files changed, 0 insertions, 0 deletions