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

[PATCH 0/2] --no-deref and --stdin compatibility for update-ref

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

Currently, the --no-deref and --stdin options of update-ref cannot be used together (the code aborts immediately with a usage message), though it makes sense to do so and is easier than repeatedly specifying on stdin that each ref should not be dereferenced. Also, the documentation for the --no-deref option has a few problems, making it unclear what it is and isn't compatible with.

The first patch is just a minor code fixup that the second lightly depends on. The second patch has the changes to fix the issues stated above.

Elijah Newren (2):
  update-ref: fix type of update_flags variable to match its usage
  update-ref: allow --no-deref with --stdin
 Documentation/git-update-ref.txt |  2 +-
 builtin/update-ref.c             | 25 ++++++++++++++-----------
 t/t1400-update-ref.sh            | 31 +++++++++++++++++++++++++++++++
 3 files changed, 46 insertions(+), 12 deletions(-)
-- 
2.19.0.rc2.2.g1aedc61e22
Next: Elijah Newren
Message 1 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.