GNU bug report logs - #42145
vc-git file order mismatch between vc-dir and vc-diff

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Tue, 30 Jun 2020 21:34:01 UTC

Severity: normal

Full log


Message #23 received at 42145 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Sean Whitton <spwhitton <at> spwhitton.name>
Cc: 42145 <at> debbugs.gnu.org, Dmitry Gutov <dgutov <at> yandex.ru>
Subject: Re: bug#42145: vc-git file order mismatch between vc-dir and vc-diff
Date: Sat, 08 Mar 2025 20:48:41 +0200
>>>> 'git diff' has a '-O' argument, which accepts <orderfile>. Maybe
>>>> it'll help, but I kind of doubt that. Ideas welcome.
>>
>>> Maybe it's possible to write a diff-mode function to sort file hunks
>>> in
>>> vc-diff output buffer?  Maybe by just giving the right file-beginning
>>> regexp to sort-subr?
>>
>> Which sort-subr?
>
> Juri, could you specify the name of the sorting function?

It seems the best candidates for NEXTRECFUN and ENDRECFUN of 'sort-subr'
are 'diff-file-next' and 'diff-file-prev', but functions for
STARTKEYFUN and ENDKEYFUN needs to be written with some use of
'diff-find-file-name'.




This bug report was last modified 98 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.