Re: Cleaning up git user-interface warts

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Date: Friday, November 17, 2006 - 4:30 pm

Jumping into this a day late, but:

Carl Worth wrote:

Agreed totally on the second point. It would be great if git natively 
supported everything people use in Cogito.

I find myself using native git commands for the most part, except for 
one Cogito command: "cg-update". It is vastly more convenient than 
git-pull in large part because it automatically merges upstream changes 
with uncommitted working-copy changes. I suppose you could classify this 
as "hide the index" in some sense.

Maybe I should give an example of what I mean. Suppose I have two child 
repositories (owned by different developers, say):

cg-clone repo child1
cg-clone repo child2

Now I go into both of them and make different (hopefull non-conflicting) 
edits to the same file.

echo foo >> child1/testfile
perl -pi -e 's/tree/shrub/' child2/testfile

I push the change from child1 into the integration repo.

cd child1
git-commit -a
git-push

Now I want to incorporate the change into child2, where I'm still doing 
work. With Cogito, I go to child2 and run:

cg-update

and afterwards, the upstream changes are merged into testfile and "git 
diff" still shows my local edits. With Git native commands, updating 
child2 if I'm not ready to commit yet is more like:

git-diff --binary > /tmp/patch
git-reset --hard
git-pull
git-apply /tmp/patch

I might have gotten that slightly wrong, but I think I have the general 
idea right; in any event, it's not nearly as convenient! The alternative 
is to commit then pull, but then when I want to look at my local edits, 
I have to remember to diff my working copy against the correct revision, 
which gets increasingly annoying if I update more than once.

Like others on this list, I'm also trying to sell an existing user base 
(in this case, they're using Subversion) on Git. The lack of a built-in 
equivalent to "svn update" is actually a pretty big UI annoyance for 
people whose workflow doesn't require git's more sophisticated feature 
set at a given point in time. Even a sophisticated user doesn't need the 
full power of the tool 100% of the time, so this isn't just a novice vs. 
expert thing in my opinion.

Absent Cogito, would the lack of a simple "svn update" equivalent be a 
deal-killing "throw your hands up in disgust and give up" thing? Maybe 
not, but it's a daily "ugh, why am I having to type extra commands to do 
something that only took one command in svn?" thing. So it's nice to 
have Cogito to paper over that particular wart.

If there is a native git equivalent to cg-update including the 
working-copy automatic merges, I'll be delighted to stand corrected!

-Steve
-
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)