git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Question] git cat-file --batch cannot handle irregular path
@ 2021-04-20  3:48 lilinchao
  2021-04-20  4:23 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: lilinchao @ 2021-04-20  3:48 UTC (permalink / raw)
  To: git

Hi, all

When I use "git cat-file --batch" command, with the form
<tree-ish>:path, here path is the working tree in my repository,
but it is irregular, such as "法律\(Law\)/民法\(civil\ law$'\n'\)\",
this kind of path is unintentionally created.  
The process cannot correctly handle this kind of case:

$ git cat-file --batch
d071ea971fb93ebc937517736c2a63d64ddbe0d9:法律(Law)/民法(civil law)
d071ea971fb93ebc937517736c2a63d64ddbe0d9:法律(Law)/民法(civil law) missing

How can I deal with this case when irregular paths cannot be avoided?

Thanks in advance.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-23 13:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-20  3:48 [Question] git cat-file --batch cannot handle irregular path lilinchao
2021-04-20  4:23 ` Junio C Hamano
2021-04-23 13:07   ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).