Re: [PATCH 6/6] builtin-commit: Add newline when showing which commit was created

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Nov 11, 2007 at 05:36:52PM +0000, Johannes Schindelin wrote:

> The function log_tree_commit() does not break the line, so we have to
> do it ourselves.

Johannes,

Can you explain the rationale for this change in more detail?

When I run builtin-commit from the tip of next, I always get an extra
newline (as compared to the shell behavior):

-- >8 --
$ git version &&
  mkdir test && cd test && git init &&
  touch file && git add file && git commit -m added &&
  echo content >file && git commit -a -m updated &&
  echo done
git version 1.5.3.6.2090.g4ece0
Initialized empty Git repository in .git/
Created initial commit b3cbe63: added
 0 files changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 file

Created commit 7a6b446: updated
 1 files changed, 1 insertions(+), 0 deletions(-)

done
-- 8< --

where the shell behavior omits the extra newlines. Is there some other
input for which log_tree_commit actually needs the newline?

-Peff
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux