GNU bug report logs -
#73320
[PATCH] project--vc-list-files: use Git's sparse-index
Previous Next
Reported by: Sean Allred <allred.sean <at> gmail.com>
Date: Tue, 17 Sep 2024 16:57:02 UTC
Severity: normal
Tags: patch
Done: Dmitry Gutov <dmitry <at> gutov.dev>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
On 19/09/2024 07:25, Sean Allred wrote:
> awkward state between Git
> 2.25 (where sparse-checkout was introduced) and 2.35 (where git-ls-files
> learned --sparse)
Speaking of versions, I've triggered an error on a remote host (with
Tramp) because it had older Git installed.
It was running a Trisquel 9.0, which is pretty old, but looking at
https://repology.org/project/git/versions it appears even the latest
Trisquel (11.0) only uses Git 2.34. Same for Ubuntu 22.04 which it's
based on, both officially supported until 2027.
The attached makes detected version connection-local, that's step 1 (*).
It could use some review, though. There aren't many examples of doing
that in Emacs code.
Michael, could you take a look? Does this look reasonable? Should
:application be 'tramp' or 'vc-git'? Is the
'connection-local-set-profiles' call needed here at all or can be skipped?
(*) Step 2 might be to limit the --sparse argument to Emacs 31 and
newer. :-/
[vc-git--program-version-connection-local.diff (text/x-patch, attachment)]
This bug report was last modified 226 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.