git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-blame.el

From
Karl Hasselström <kha@treskal.com>
Date
Feb 1, 2007, 14:26 UTC
Message-ID
<20070201142638.GA12980@diana.vm.bytemark.co.uk>
In-Reply-To
<87veimxbc6.fsf@morpheus.local>
On 2007-02-01 14:21:29 +0100, David Kågedal wrote:
Show 11 quoted lines
> Karl Hasselström <kha@treskal.com> writes:
>
> >   3. Even after I've edited a line, or added a new line, they
> >      continue to be attributed to the same existing commits. They
> >      should either have no attribution, or possibly just "local
> >      edit" or something. I seem to recall this kind of
> >      functionality for git-blame being discussed very recently?
>
> I saw it was discussed, but I don't think it was added. Currently,
> it probably makes most sense to verify that the file hasn't been
> modified, and then switch to read-only mode while viewing the blame.

Hmm, probably, yes. But it'll be kind of limiting to not be able to run blame on a file that has local modifications. I think I understand why vc-annotate opens a new buffer ...

Show 6 quoted lines
> >   6. It would be nice with a keyboard shortcut for displaying (in
> >      a separate buffer) the diff to that file introduced by the
> >      commit under the cursor. This could be combined with (3) by
> >      having commit details followed by diff.
>
> As in "git log -p", you mean?

Yes. I was thinking of exactly what "git log -p $hash^..$hash" produces. The Emacs windows should be split in two frames, with the commit details + diff in the lower frame, just like vc-diff.

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Previous: David KågedalNext: Jakub Narebski
Message 8 of 9 in “git-blame.el”
  1. David KågedalJan 31, 2007
  2. Randal L. SchwartzJan 31, 2007
  3. David KågedalJan 31, 2007
  4. Junio C HamanoJan 31, 2007
  5. David KågedalJan 31, 2007
  6. Karl HasselströmFeb 1, 2007
  7. David KågedalFeb 1, 2007
  8. Karl HasselströmFeb 1, 2007
  9. git-blame.el --- Minor mode for incremental blame for GitJakub Narebski, Feb 4, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.