Re: [git-users] Custom commit property?

2010-01-04 Thread Petr Baudis
On Fri, Jan 01, 2010 at 09:59:03AM -0800, Trans wrote:
> Is there are way to add a custom property to commits? I want to use it
> to track commit "type" For example, I use 'admin', 'doc', 'major',
> 'minor', and 'bug' to classify my commits.

There is no way to add properties to the commit header, they are set in
stone and to be used only for vital Git metadata. The best way to
achieve what you want is to simply have something like

Type: bug

at the bottom of the commit message, or [bug] on the first line
beginning. You can help pre-fill this by a commit message template and
guard for its presence using hooks.

-- 
Petr "Pasky" Baudis
A lot of people have my books on their bookshelves.
That's the problem, they need to read them. -- Don Knuth

--

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.




Re: [git-users] Custom commit property?

2010-01-01 Thread Michael P. Soulier
On 01/01/10 Trans said:

> Is there are way to add a custom property to commits? I want to use it
> to track commit "type" For example, I use 'admin', 'doc', 'major',
> 'minor', and 'bug' to classify my commits.

Not that I know of. You can provide custom log messages of course.

Mike
-- 
Michael P. Soulier 
"Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction."
--Albert Einstein


pgpuuHOSjtIkJ.pgp
Description: PGP signature