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

[PATCH 1/3] Do not call 'cmp' with non-existant -q flag.

From
Yann Dirson <ydirson@altern.org>
Date
May 27, 2006, 16:39 UTC
Message-ID
<20060527163931.474.19611.stgit@gandelf.nowhere.earth>
In-Reply-To
<20060527163641.474.93575.stgit@gandelf.nowhere.earth>

I cannot find when that flag was removed if it ever existed, I can find nothing about it in the ChangeLog and NEWS file of GNU diff. The current flag is -s aka --quiet aka --silent, so let's use -s, assuming it is a portable flag. Feel free to lart me with a POSIX bible if needed.

Signed-off-by: Yann Dirson <ydirson@altern.org>
---
 git-cvsexportcommit.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-cvsexportcommit.perl b/git-cvsexportcommit.perl
index f994443..ed87dc9 100755
--- a/git-cvsexportcommit.perl
+++ b/git-cvsexportcommit.perl
@@ -151,7 +151,7 @@ foreach my $f (@bfiles) {
     my $blob = `git-ls-tree $tree "$f" | cut -f 1 | cut -d ' ' -f 3`;
     chomp $blob;
     `git-cat-file blob $blob > $tmpdir/blob`;
-    if (system('cmp', '-q', $f, "$tmpdir/blob")) {
+    if (system('cmp', '-s', $f, "$tmpdir/blob")) {
 	warn "Binary file $f in CVS does not match parent.\n";
 	$dirty = 1;
 	next;
Previous: Yann DirsonNext: Yann Dirson
Message 2 of 6 in “Handful of cvsexportcommit patches”
  1. 0/3 Handful of cvsexportcommit patchesYann Dirson, May 27, 2006
  2. 1/3 Do not call 'cmp' with non-existant -q flag.Yann Dirson, May 27, 2006
  3. 2/3 Document current cvsps limitations.Yann Dirson, May 27, 2006
  4. Yann DirsonMay 27, 2006
  5. 3/3 Make cvsexportcommit create parent directories as needed.Yann Dirson, May 27, 2006
  6. git-cvsexportcommit.perl: fix typoSven Verdoolaege, Jun 17, 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.