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

[PATCH 2/2] [CLEANUP] use symbolic name as return value

From
Uwe Zeisberger <zeisberg@informatik.uni-freiburg.de>
Date
Jan 26, 2006, 11:26 UTC
Message-ID
<20060126112615.GC7706@informatik.uni-freiburg.de>
Signed-off-by: Uwe Zeisberger <zeisberg@informatik.uni-freiburg.de>
---
 sha1_name.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
9acfd0a5f5390460d3de7d3f04610b795f8e69dc
diff --git a/sha1_name.c b/sha1_name.c
index b95ef05..ba0747c 100644
--- a/sha1_name.c
+++ b/sha1_name.c
@@ -143,7 +143,7 @@ static int find_unique_short_object(int 
 	}
 	/* Both have unique ones -- do they match? */
 	if (memcmp(packed_sha1, unpacked_sha1, 20))
-		return -2;
+		return SHORT_NAME_AMBIGUOUS;
 	memcpy(sha1, packed_sha1, 20);
 	return 0;
 }
-- 
1.1.4.g3e6c

-- 
Uwe Zeisberger

Set the I_WANT_A_BROKEN_PS environment variable to force BSD syntax ...
	-- manpage of procps
Message 1 of 1 in “[CLEANUP] use symbolic name as return value”
  1. 2/2 [CLEANUP] use symbolic name as return valueUwe Zeisberger, Jan 26, 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.