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

Re: [PATCH 2/2] doc: documentation update for the branch track changes

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 19, 2008, 21:34 UTC
Message-ID
<7vfxvoiqb5.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<1203438278-73786-2-git-send-email-jaysoffian@gmail.com>
Jay Soffian <jaysoffian@gmail.com> writes:
Show 7 quoted lines
> Documents the branch.autosetupmerge=always setting and usage of --track
> when branching from a local branch.
>
> Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
> ---
> I was trying to change too much at once. This is the bare minimum to
> document the functionality changes.

This is very much appreciated. Bite-sized changes make reviewing much more pleasant.

Show 21 quoted lines
> diff --git a/Documentation/git-branch.txt b/Documentation/git-branch.txt
> index 7e8874a..c5426a5 100644
> --- a/Documentation/git-branch.txt
> +++ b/Documentation/git-branch.txt
> @@ -105,20 +104,19 @@ OPTIONS
>  	Display the full sha1s in output listing rather than abbreviating them.
>  
>  --track::
> -	Set up configuration so that git-pull will automatically
> -	retrieve data from the remote branch.  Use this if you always
> -	pull from the same remote branch into the new branch, or if you
> -	don't want to use "git pull <repository> <refspec>" explicitly.
> -	This behavior is the default.  Set the
> -	branch.autosetupmerge configuration variable to false if you
> -	want git-checkout and git-branch to always behave as if
> -	'--no-track' were given.
> +	When creating a new branch, set up configuration so that git-pull
> +	will automatically retrieve data from the start point, which must be
> +	a branch. Use this if you always pull from the same upstream branch
> +	into the new branch, or if you don't want to use "git pull
> +	<repository> <refspec>" explicitly. ...
Micronit; I think this ", or" should be ", and".
Show 11 quoted lines
> diff --git a/Documentation/git-checkout.txt b/Documentation/git-checkout.txt
> index b4cfa04..7c7cfb1 100644
> --- a/Documentation/git-checkout.txt
> +++ b/Documentation/git-checkout.txt
> @@ -48,21 +48,19 @@ OPTIONS
>  	may restrict the characters allowed in a branch name.
>  
>  --track::
> ...
>  --no-track::
> ...

Micronit; we would want to create track-options.txt and then include::track-options.txt[] from here and in git-branch.txt (that can be done later).

Otherwise, the patch looks fine, and I'll queue this as-is, together with your [1/2] (with the "oops, commit message is stale" amended in). We can incrementally improve on these in-tree from here on.

I am very tempted to squish the "s/,or /, and/" change in while applying [2/2], though.

By the way, please do not get discouraged to send-in the doc clean-ups. I "gave up (for now)" last night because it was getting late, I had other patches to review and accept/respond, and I felt I did not have time to comment on a patch that mixes clean-ups and feature enhancements at that point.

It is a good idea to organize a series so that clean-ups to existing stuff that you are going to touch come first, and then your own enhancements come on top, for a few reasons:

 (1) It is good for reviewers, because each can be looked at
     individually.
     * A clean-up is not supposed to change the behaviour and/or
       semantics unless it is a bugfix.  An error in rewriting
       becomes easier to spot if it is done standalone.
       Otherwise the reviewers need to wonder "why is it this
       way now?  Is it a thinko, or is it because it interacts
       with the new feature?"
     * An enhancement on top of the cleaned-up base will be
       smaller and easier to understand what gets changed.
 (2) It is good for the maintainer, for the same reason as
     above, and in addition, even when the list does not yet
     agree with the proposed enhancements, the clean-ups to
     allow any other future work (not limited to the
     contributor's) may be received favorably already.  The
     clean-up can be applied early while potentially
     controversial enhancements are still being discussed and
     polished.  This reduces the total amount of changes in
     flight --- smaller number of things to keep track of.
     
 (3) It is good for contributors, because the new work (which is
     what the contributors are more interested in) can be done
     on solidified base, and the patch that may need to go
     through multiple rounds of polishing would become smaller,
     if clean-ups are accepted independently in earlier rounds.
The same principle applies to both code and documentation.
Previous: Jay SoffianNext: Jay Soffian
Message 3 of 6 in “branch: optionally setup branch.*.merge from upstream local branches”
  1. 1/2 branch: optionally setup branch.*.merge from upstream local branchesJay Soffian, Feb 19, 2008
  2. 2/2 doc: documentation update for the branch track changesJay Soffian, Feb 19, 2008
  3. Junio C HamanoFeb 19, 2008
  4. Jay SoffianFeb 19, 2008
  5. Jay SoffianFeb 19, 2008
  6. Johannes SchindelinFeb 19, 2008

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.