From: Jakub Narebski Date: Fri, 24 Nov 2006 12:41:29 GMT Subject: Re: Cleaning up git user-interface warts Message-ID: In-Reply-To: <4566E512.4010405@xs4all.nl> Han-Wen Nienhuys wrote: > Jakub Narebski escreveu: > >>> - --pretty option with wholly uninformative options full, medium, >>> short, raw. It's not even documented what each option does. >> >> And 'oneline' and undocumented 'email'. True, git lacks documentation (and >> this one of main complaints in git survey). > > The recently posted patch documenting is an improvement, but why not > add an option so you can do > > --format 'committer %c\nauthor %a\n' > > this catches all combinations, and is easier for scripting. > > Right now, I have some scripts that have to munge log output with > regular expressions to strip out the "author:" prefixes. If we ever implemented this, I'd rather to separate what is now of format parsing in git-for-each-ref (although I'd like to make it more like rpm's --query-format argument, with %-n{header}, %[array] etc.) into separate module, and reuse it for git-log and friends --pretty/--format handling. -- Jakub Narebski Warsaw, Poland ShadeHawk on #git