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

[PATCH 1/2] update-ref: fix type of update_flags variable to match its usage

From
Elijah Newren <newren@gmail.com>
Date
Sep 5, 2018, 17:25 UTC
Message-ID
<20180905172550.11621-2-newren@gmail.com>
In-Reply-To
<20180905172550.11621-1-newren@gmail.com>

The ref_transaction_*() family of functions expect a flags parameter which is of type unsigned int. Make the update_flags variable, which is passed as that parameter, be of the same type.

Signed-off-by: Elijah Newren <newren@gmail.com>
---
 builtin/update-ref.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builtin/update-ref.c b/builtin/update-ref.c
index 4fa3c0a86f..54fac01f21 100644
--- a/builtin/update-ref.c
+++ b/builtin/update-ref.c
@@ -14,7 +14,7 @@ static const char * const git_update_ref_usage[] = {
 };
 
 static char line_termination = '\n';
-static int update_flags;
+static unsigned int update_flags;
 static unsigned create_reflog_flag;
 static const char *msg;
 
-- 
2.19.0.rc2.2.g1aedc61e22
Previous: Elijah NewrenNext: Elijah Newren
Message 2 of 3 in “--no-deref and --stdin compatibility for update-ref”
  1. 0/2 --no-deref and --stdin compatibility for update-refElijah Newren, Sep 5, 2018
  2. 1/2 update-ref: fix type of update_flags variable to match its usageElijah Newren, Sep 5, 2018
  3. 2/2 update-ref: allow --no-deref with --stdinElijah Newren, Sep 5, 2018

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.