From: Kaartic Sivaraam <kaartic.sivaraam@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: Git mailing list <git@vger.kernel.org>
Subject: Re: [PATCH v4 2/2] Doc/check-ref-format: clarify information about @{-N} syntax
Date: Sat, 16 Dec 2017 11:08:26 +0530 [thread overview]
Message-ID: <641984aa-40b1-fde1-cafd-af109fa486bb@gmail.com> (raw)
In-Reply-To: <xmqqa7ylur1i.fsf@gitster.mtv.corp.google.com>
On Thursday 14 December 2017 11:32 PM, Junio C Hamano wrote:
> Kaartic Sivaraam <kaartic.sivaraam@gmail.com> writes:
>
> Looks alright.
>
> It was made unnecessarily harder to review because it was marked as
> 2/2, even though this no longer applies on top of the copy of 1/2
> that was merged some time ago.
Sorry about that but I don't remember doing anything that made it not to
apply on top of 1/2. (I just amended my changes to my topic branch. It
can be found at [1])
> I needed to find that it was rebased
> on top of 'master';
I don't remember doing any rebase on top of 'master'. My topic was (and
still is) based on the 'master' when it was pointing at 89ea799ff (Sync
with maint, 2017-11-15). Anyways, it's my mistake as I didn't specify
the branch on which I based this. Sorry about that.
>
> Also re-wrapping the lines only to squeeze in "but be cautious..."
> and replace s/branch/checkout/ in a few places did not help to make
> it easy to spot what's changed.
>
I expected this would happen but I thought the line shouldn't grew too
much so that they have to re-wrapped. Seems it would have been better if
I did the re-wrapping as a follow-up commit (didn't strike me then).
> This part looked a bit strange.
>
>> +it can be used as a valid branch name e.g. when creating a new branch
>> +(but be cautious when using the previous checkout syntax; it may refer
>> +to a detached HEAD state). The rule `git check-ref-format --branch
>
> I think "e.g. when creating a new branch" is a parenthetical remark,
> so it should be inside parenthesis.
It was. I brought them out to introduce the parenthetical warning. I'll
send a v5 by putting the remark back inside parantheses and bringing the
warning out. If it's not ok, let me know. I'll also try to do the
re-wrapping as a separate cleanup patch.
> As the last three lines in the
> new text (quoted above) already warns that it may not be a branch name,
> I am not sure if the "but be cautious" adds much value, though.
>
That warning was for the impatient readers, who might want to find quick
answers as to why they saw an odd behaviour (check-ref-froamt --branch
not failing for a commit object name) (or) those who would want to use
'check-ref-format --branch' but do not find time to read the whole
paragraph.
next prev parent reply other threads:[~2017-12-16 5:38 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-19 17:54 [PATCH] docs: checking out using @{-N} can lead to detached state Kaartic Sivaraam
2017-11-20 2:09 ` Junio C Hamano
2017-11-20 15:18 ` Kaartic Sivaraam
2017-11-27 17:28 ` [PATCH v2 1/2] Doc/checkout: " Kaartic Sivaraam
2017-11-27 17:28 ` [PATCH v2 2/2] Doc/check-ref-format: clarify information about @{-N} syntax Kaartic Sivaraam
2017-11-28 2:40 ` Junio C Hamano
2017-11-28 14:43 ` Kaartic Sivaraam
2017-12-03 1:52 ` Junio C Hamano
2017-12-04 17:25 ` Kaartic Sivaraam
2017-12-04 18:44 ` Junio C Hamano
2017-12-05 5:20 ` Kaartic Sivaraam
2017-11-28 16:34 ` [PATCH v3 " Kaartic Sivaraam
2017-12-03 2:08 ` Junio C Hamano
2017-12-06 17:58 ` Kaartic Sivaraam
2017-12-14 12:30 ` [PATCH v4 " Kaartic Sivaraam
2017-12-14 18:02 ` Junio C Hamano
2017-12-16 5:38 ` Kaartic Sivaraam [this message]
2017-12-16 8:13 ` [PATCH v5 0/1] clarify about @{-N} syntax in check-ref-format documentation Kaartic Sivaraam
2017-12-16 8:13 ` [PATCH v5 1/1] Doc/check-ref-format: clarify information about @{-N} syntax Kaartic Sivaraam
2017-11-28 2:33 ` [PATCH v2 1/2] Doc/checkout: checking out using @{-N} can lead to detached state Junio C Hamano
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=641984aa-40b1-fde1-cafd-af109fa486bb@gmail.com \
--to=kaartic.sivaraam@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/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).