Re: git pull and merging.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Junio C Hamano
Date: Thursday, December 7, 2006 - 12:06 pm

Josef Weidendorfer <Josef.Weidendorfer@gmx.de> writes:


I accepted the "branch.*.merge" patch long time ago but I did
not see the point of moving things into config back then, so I
did not look at the design issue deeply enough to notice that
this can be a source of confusion (in other words, "I wouldn't
use it myself, but I've seen some people on the list wanting to
have it, and the submitter must have thought about what are
needed a lot more than myself" did not go so well).

Once you place something like "branch.*.merge" in configuration
file (either $GIT_DIR/config, or a $GIT_DIR/remotes/* file), you
are talking about other repositories you regularly interact
with, so it might be probably Ok to require the user to use a
tracking branch if he wants the convenience of "branch.*.merge",
and make its value name the local tracking branch instead of the
remote branch.

But that means I would never be able to benefit from the
convenience of "branch.*.merge"; I pull from gitk repository to
get updates, but I do not have (and I do not see the point to
have) a remote tracking branch to track it.  If you want to
cater to people who fetch and merge without using tracking
branches, the remote branch name is the only sane thing you can
use for the value of "branch.*.merge".

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git pull and merging., Aneesh Kumar, (Tue Dec 5, 9:51 pm)
Re: git pull and merging., Junio C Hamano, (Tue Dec 5, 10:02 pm)
Re: git pull and merging., Aneesh Kumar, (Tue Dec 5, 10:21 pm)
Re: git pull and merging., Johannes Schindelin, (Wed Dec 6, 2:26 am)
Re: git pull and merging., Aneesh Kumar, (Wed Dec 6, 3:05 am)
Re: git pull and merging., Josef Weidendorfer, (Wed Dec 6, 9:44 am)
Re: git pull and merging., Aneesh Kumar K.V, (Wed Dec 6, 11:46 pm)
Re: git pull and merging., Josef Weidendorfer, (Thu Dec 7, 4:27 am)
Re: git pull and merging., Junio C Hamano, (Thu Dec 7, 12:06 pm)
Re: git pull and merging., Josef Weidendorfer, (Thu Dec 7, 3:54 pm)
Re: git pull and merging., Junio C Hamano, (Thu Dec 7, 4:06 pm)
Re: git pull and merging., sbejar, (Thu Dec 7, 6:56 pm)
Re: git pull and merging., sbejar, (Thu Dec 7, 7:04 pm)
Re: git pull and merging., Junio C Hamano, (Fri Dec 8, 12:07 am)
Re: git pull and merging., Josef Weidendorfer, (Fri Dec 8, 10:23 am)
[PATCH] Add branch.*.localmerge and documentation update, Josef Weidendorfer, (Fri Dec 8, 12:12 pm)
Re: git pull and merging., sbejar, (Fri Dec 8, 1:09 pm)
Re: [PATCH] Add branch.*.localmerge and documentation update, Josef Weidendorfer, (Fri Dec 8, 2:39 pm)
Re: [PATCH] Add branch.*.localmerge and documentation update, Josef Weidendorfer, (Fri Dec 8, 3:01 pm)
Re: [PATCH] Add branch.*.localmerge and documentation update, Josef Weidendorfer, (Fri Dec 8, 4:17 pm)
[PATCH] Add branch.*.merge warning and documentation update, Josef Weidendorfer, (Fri Dec 8, 6:28 pm)