Re: [PATCH v4 0/5] Disable "git status" comment prefix

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

 



Junio C Hamano <gitster@xxxxxxxxx> writes:

> Actually, "nothing added ..." is not a part of status proper; it
> will be clear if you run the command with comment prefix, whose
> output may end like so:
>
>     # Untracked files:
>     #   (use "git add <file>..." to include in what will be committed)
>     #
>     #       gomi
>     #       kuzu
>     nothing added to commit but untracked files present (use "git add" to track)
>
> But I agree that the output without comment prefix needs an extra
> blank before that line (if that line will be emitted, that is).

Even when the line is not emitted, we normally do:

# On branch master
# Changes to be committed:
#   (use "git reset HEAD <file>..." to unstage)
#
#	modified:   foo.txt
#

(with the last #-only line), so there's no reason to behave differently
when the last lines are "Untracked files".

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
--
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]