Re: [RFC] Detached-HEAD reminder on commit?
- From
Nicolas Pitre <nico@cam.org>
- Date
- Sep 2, 2008, 22:58 UTC
- Message-ID
- <alpine.LFD.1.10.0809021856310.23787@xanadu.home>
- In-Reply-To
- <7vabeqi2n3.fsf@gitster.siamese.dyndns.org>
On Tue, 2 Sep 2008, Junio C Hamano wrote:
Show 14 quoted lines
> Jakub Narebski <jnareb@gmail.com> writes: > > > Perhaps instead of poposed patch we should simply put empty lines > > to emphasize that we are on no branch: > > > > # Please enter the commit message for your changes. Lines starting > > # with '#' will be ignored, and an empty message aborts the commit. > > # > > # Not currently on any branch. > > # > > # Untracked files: > > # (use "git add <file>..." to include in what will be committed) > > That sounds sensible, easy and safe enough.
Yep. And I would go as far as suggesting that the branch information be the first line of the lot:
# Not currently on any branch. # # Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # # Untracked files: # (use "git add <file>..." to include in what will be committed) # [...]
Nicolas