From: Elijah Newren <newren@gmail.com>
To: git@vger.kernel.org
Cc: brad.king@kitware.com, Elijah Newren <newren@gmail.com>
Subject: [PATCH 0/2] --no-deref and --stdin compatibility for update-ref
Date: Wed, 5 Sep 2018 10:25:48 -0700 [thread overview]
Message-ID: <20180905172550.11621-1-newren@gmail.com> (raw)
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 reply other threads:[~2018-09-05 17:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-05 17:25 Elijah Newren [this message]
2018-09-05 17:25 ` [PATCH 1/2] update-ref: fix type of update_flags variable to match its usage Elijah Newren
2018-09-05 17:25 ` [PATCH 2/2] update-ref: allow --no-deref with --stdin Elijah Newren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180905172550.11621-1-newren@gmail.com \
--to=newren@gmail.com \
--cc=brad.king@kitware.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).