]> git.ipfire.org Git - thirdparty/git.git/commit - pathspec.h
pathspec: factor out magic-to-name function
authorJeff King <peff@peff.net>
Thu, 1 Jun 2023 17:38:14 +0000 (13:38 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sat, 3 Jun 2023 01:34:25 +0000 (10:34 +0900)
commit8e32caaa783a3a6b1d94834ee6e2d21ac36ff39f
tree9db5c7c6043c22b58da2bb43c59c3e307ff630bc
parent0d1bd1dfb37ef25e1911777c94129fc769ffec38
pathspec: factor out magic-to-name function

When we have unsupported magic in a pathspec (because a command or code
path does not support particular items), we list the unsupported ones in
an error message.

Let's factor out the code here that converts the bits back into their
human-readable names, so that it can be used from other callers, which
may want to provide more flexible error messages.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pathspec.c
pathspec.h