[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: vc-annotate / magit-blame considerations
From: |
Jacob Gerlach |
Subject: |
Re: vc-annotate / magit-blame considerations |
Date: |
Tue, 28 Apr 2015 09:28:27 -0400 |
Hello,
On Sun, Apr 26, 2015 at 7:21 AM Yuri D'Elia <wavexx@thregr.org> wrote:
>
> I couldn't find an easy way to customize the annotation. It would make
> sense to me to be able to filter the available info using a function
> and/or a format. The current option of hiding all annotations is not
> terribly useful, since you clearly want *some* annotation if you're
> using vc-annotate in the first place.
It's looks like the format is hard coded in vc-git-annotate-command.
If you can find a set of arguments to git blame (for example, -s to
hide author and date or --abbrev=n to truncate the SHA1) that produces
the format you'd like, you could redefine this function with the
arguments you prefer. It's a hack, but it does help to make lines in
the annotate buffer a bit shorter. Unfortunately, the date is parsed
to fontify the annotate buffer, so you can't use -s if you want to
keep the color coding.
There is probably a better solution using invisibility specs, but it
looks like that might imply some deep changes to the entire vc system.
Regards,
Jake