This commit is contained in:
Joey Hess 2024-12-18 15:20:44 -04:00
parent 6d34a0b19d
commit c035ff7c27
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 74 additions and 0 deletions

View file

@ -0,0 +1,21 @@
[[!comment format=mdwn
username="joey"
subject="""comment 1"""
date="2024-12-18T19:10:50Z"
content="""
Note that `git-annex` intentionally does not operate on pathspecs,
which is being discussed in
<https://git-annex.branchable.com/bugs/get__47__metadata__47____63____63____63____58___does_not_handle_pathspec_correct/>
It is possible to use eg `git-annex get --branch foo:subdir/` to operate
on a subdirectory, which is enough in many situations.
But what you're looking for is pathspec style filtering.
I do see the benefit.
`git ls-tree` also doesn't have a way to filter by pathspec, and that's
what `--branch` uses. So it would require git-annex reimplement git's
pathspecs, which seem complicated and not very well documented. Or there
would need to be a way to pass the paths through some other git command
to handle the pathspec. I don't know what git command might be able to be
used to do that.
"""]]