git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Make cvsexportcommit work with filenames with spaces and non-ascii characters.

From
Junio C Hamano <junkio@cox.net>
Date
Dec 10, 2006, 21:27 UTC
Message-ID
<7vlklf4f1s.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<200612101639.22397.robin.rosenberg@dewire.com>
Robin Rosenberg <robin.rosenberg@dewire.com> writes:
Show 6 quoted lines
>> Well, have you tried this?
>>
>> 	git diff-tree -p --binary fe142b3a | git apply --summary --numstat
> of course not. I didn't understand it. Why can't it tell me about removed
> binary files, so I could remove the git-diff-tree invocation to find out about 
> added/removed files?

Maybe I am missing something. It tells you about added or removed files (either binary or non-binary).

I'd prepare a pair of practice patch files. "forward" has creation, "reverse" has addition.

$ git diff-tree -p --binary fe142b3a >forward.patch $ git diff-tree -R -p --binary fe142b3a >reverse.patch

$ git apply --summary --numstat forward.patch
50      20      git-cvsexportcommit.perl
145     0       t/t9200-git-cvsexportcommit.sh
-       -       t/test9200a.png
-       -       t/test9200b.png
 create mode 100755 t/t9200-git-cvsexportcommit.sh
 create mode 100644 t/test9200a.png
 create mode 100644 t/test9200b.png
$ git apply --summary --numstat reverse.patch
20      50      git-cvsexportcommit.perl
0       145     t/t9200-git-cvsexportcommit.sh
-       -       t/test9200a.png
-       -       t/test9200b.png
 delete mode 100755 t/t9200-git-cvsexportcommit.sh
 delete mode 100644 t/test9200a.png
 delete mode 100644 t/test9200b.png
> This fuzz gives some, but not much slack. Reverting the option could be a 
> good idea.
>
> Update follows.
Ok.
Previous: Robin RosenbergNext: Robin Rosenberg
Message 5 of 8 in “Make cvsexportcommit work with filenames with spaces and non-ascii characters.”
  1. Make cvsexportcommit work with filenames with spaces and non-ascii characters.Robin Rosenberg, Dec 9, 2006
  2. Junio C HamanoDec 10, 2006
  3. Robin RosenbergDec 10, 2006
  4. Make cvsexportcommit work with filenames with spaces and non-ascii characters.Robin Rosenberg, Dec 10, 2006
  5. Junio C HamanoDec 10, 2006
  6. Robin RosenbergDec 10, 2006
  7. Junio C HamanoDec 12, 2006
  8. Make cvsexportcommit work with filenames with spaces and non-ascii characters.Robin Rosenberg, Dec 10, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.