Re: Cleaning up git user-interface warts

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Steven Grimm <koreth@...>
Cc: <git@...>
Date: Friday, November 17, 2006 - 5:35 pm

Steven Grimm <koreth@midwinter.com> writes:


stg pull would help you in such a situation as well, but I see
what you mean.

Just like we have an explicit -m option to "checkout" to allow
file-level merging of local changes, I think it is reasonable to
hav an option that allows file-level merging of local changes
when doing a pull that you _know_ will not conflict.

When there will be a conflict between your HEAD and MERGE_HEAD
even without your local changes, you somehow need to sort out
the resulting mess that come from conflicts due to the branch
diversion (i.e. log HEAD...MERGE_HEAD) and conflicts between
your local change and what the other branch did.  The resulting
merge commit obviously needs to record resolutions only to the
former and should not even record anything you did locally,
conflicted or not.  Which is a pain for the end user and giving
them a way to revert to the state before this three-and-half
way merge started also needs to be there.

Unfortunately the only way to know if there will be a file-level
conflict is to try one, and stashing away the current state just
in case it conflicted is a performance penalty, so this probably
should stay as an option just like "-m" to the "checkout".

But the basic mechanism to do this three-and-half way merge is
simple and I have no objection if somebody wanted to add such an
option to "git pull".


-
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:
Cleaning up git user-interface warts, Carl Worth, (Tue Nov 14, 3:22 pm)
Re: Cleaning up git user-interface warts, Nicolas Pitre, (Tue Nov 14, 4:52 pm)
Re: Cleaning up git user-interface warts, Carl Worth, (Tue Nov 14, 5:10 pm)
Re: Cleaning up git user-interface warts, Junio C Hamano, (Tue Nov 14, 6:36 pm)
Re: Cleaning up git user-interface warts, Alan Chandler, (Sat Nov 18, 3:59 am)
Re: Cleaning up git user-interface warts, Petr Baudis, (Thu Nov 16, 1:12 am)
Re: Cleaning up git user-interface warts, Han-Wen Nienhuys, (Thu Nov 16, 8:11 pm)
Re: Cleaning up git user-interface warts, Junio C Hamano, (Thu Nov 16, 5:49 pm)
Re: Cleaning up git user-interface warts, Petr Baudis, (Thu Nov 16, 6:20 pm)
Re: Cleaning up git user-interface warts, Junio C Hamano, (Thu Nov 16, 9:49 pm)
Re: Cleaning up git user-interface warts, Junio C Hamano, (Thu Nov 16, 6:45 am)
Re: Cleaning up git user-interface warts, Petr Baudis, (Thu Nov 16, 9:43 am)
Re: Cleaning up git user-interface warts, Junio C Hamano, (Tue Nov 14, 6:50 pm)
Re: Cleaning up git user-interface warts, Nicolas Pitre, (Wed Nov 15, 12:32 am)
Re: Cleaning up git user-interface warts, Petr Baudis, (Thu Nov 16, 9:58 am)
Re: Cleaning up git user-interface warts, Andreas Ericsson, (Wed Nov 15, 8:15 am)
Re: Cleaning up git user-interface warts, Andy Parkins, (Wed Nov 15, 5:17 am)
Re: Cleaning up git user-interface warts, Petr Baudis, (Wed Nov 15, 11:53 pm)
Re: Cleaning up git user-interface warts, Junio C Hamano, (Wed Nov 15, 1:55 pm)
Re: Cleaning up git user-interface warts, Andy Parkins, (Wed Nov 15, 3:14 pm)
Re: Cleaning up git user-interface warts, Nicolas Pitre, (Wed Nov 15, 11:41 am)
Re: Cleaning up git user-interface warts, Alan Chandler, (Sat Nov 18, 7:09 am)
Re: Cleaning up git user-interface warts, Junio C Hamano, (Wed Nov 15, 1:59 pm)
Re: Cleaning up git user-interface warts, Nicolas Pitre, (Wed Nov 15, 2:11 pm)
Re: Cleaning up git user-interface warts, Karl , (Thu Nov 16, 9:21 am)
Re: Cleaning up git user-interface warts, Junio C Hamano, (Wed Nov 15, 1:35 am)
Re: Cleaning up git user-interface warts, Johannes Schindelin, (Wed Nov 15, 10:01 am)
Re: Cleaning up git user-interface warts, Nicolas Pitre, (Wed Nov 15, 11:10 am)
Re: Cleaning up git user-interface warts, Junio C Hamano, (Wed Nov 15, 2:16 pm)
Re: Cleaning up git user-interface warts, Han-Wen Nienhuys, (Wed Nov 15, 8:23 pm)
Re: Cleaning up git user-interface warts, Andy Parkins, (Wed Nov 15, 3:02 pm)
Re: Cleaning up git user-interface warts, Junio C Hamano, (Wed Nov 15, 3:41 pm)
Re: Cleaning up git user-interface warts, Carl Worth, (Wed Nov 15, 4:19 pm)
Re: Cleaning up git user-interface warts, Junio C Hamano, (Wed Nov 15, 5:13 pm)
Re: Cleaning up git user-interface warts, Carl Worth, (Wed Nov 15, 6:36 pm)
Re: Cleaning up git user-interface warts, Petr Baudis, (Wed Nov 15, 11:21 pm)
Re: Cleaning up git user-interface warts, Robin Rosenberg, (Thu Nov 16, 6:09 am)
Re: Cleaning up git user-interface warts, Petr Baudis, (Thu Nov 16, 9:46 am)
Re: Cleaning up git user-interface warts, Nicolas Pitre, (Wed Nov 15, 4:15 pm)
Re: Cleaning up git user-interface warts, Sean, (Wed Nov 15, 11:03 am)
Re: Cleaning up git user-interface warts, Shawn Pearce, (Wed Nov 15, 2:18 am)
Re: Cleaning up git user-interface warts, Junio C Hamano, (Wed Nov 15, 2:30 am)
Re: Cleaning up git user-interface warts, Karl , (Tue Nov 14, 4:46 pm)
Re: Cleaning up git user-interface warts, Petr Baudis, (Tue Nov 14, 3:47 pm)
Re: Cleaning up git user-interface warts, Carl Worth, (Tue Nov 14, 4:56 pm)
Re: Cleaning up git user-interface warts, Steven Grimm, (Fri Nov 17, 4:30 pm)
Re: Cleaning up git user-interface warts, Junio C Hamano, (Fri Nov 17, 5:35 pm)
Re: Cleaning up git user-interface warts, Petr Baudis, (Fri Nov 17, 6:07 pm)
Re: Cleaning up git user-interface warts, Junio C Hamano, (Tue Nov 14, 8:31 pm)
Re: Cleaning up git user-interface warts, Carl Worth, (Wed Nov 15, 4:51 pm)
Re: Cleaning up git user-interface warts, Petr Baudis, (Wed Nov 15, 12:08 am)
Re: Cleaning up git user-interface warts, Junio C Hamano, (Wed Nov 15, 12:33 am)
Re: Cleaning up git user-interface warts, Petr Baudis, (Wed Nov 15, 4:39 pm)
Re: Cleaning up git user-interface warts, Nicolas Pitre, (Wed Nov 15, 12:46 am)
Re: Cleaning up git user-interface warts, Shawn Pearce, (Tue Nov 14, 3:29 pm)
Re: Cleaning up git user-interface warts, Carl Worth, (Tue Nov 14, 3:59 pm)