From: Matthieu Moy Date: Thu, 04 Sep 2008 09:09:17 GMT Subject: Re: blame vs annotate? Message-ID: In-Reply-To: <7v8wu9cd7i.fsf@gitster.siamese.dyndns.org> Junio C Hamano writes: > "Jonathan del Strother" writes: > >> What's the difference between 'git blame' & 'git annotate'? The >> output is practically identical - it's not obvious when you would use >> one over the other > > In short, don't use git-annotate unless you are an ancient script that was > written before git-blame was written. They are functionally equivalent, > uses the same blame assigning engine, and the only difference is the > default output format, and blame knows how to mimick annotate output. Then, does it make sense to apply this? --- a/Documentation/git-annotate.txt +++ b/Documentation/git-annotate.txt @@ -14,6 +14,10 @@ DESCRIPTION Annotates each line in the given file with information from the commit which introduced the line. Optionally annotate from a given revision. +This command exists for backward compatibility. If you don't have +existing scripts using 'git annotate', you should use +linkgit:git-blame[1] instead. + OPTIONS ------- include::blame-options.txt[] -- Matthieu