Re: [WIP/PATCH 0/4] Re: Making error messages stand out

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [WIP/PATCH 0/4] Re: Making error messages stand out

From: Matthieu Moy <hidden>
Date: 2016-06-15 22:49:17

Nguyen Thai Ngoc Duy [off-list ref] writes:
Even better, make it available for some time with, say "git hints".
After doing lots of things to resolve conflicts, I simply forget what
it hinted me.
Actually, I don't think we should add a new command for that, but add
something to "git status", like

$ git status
# On branch master
# rebase in progress (use "git rebase --continue" to proceed)
# ...

Same would apply to conflicting merges. It's very common for beginners
(especially when they come from SVN) to start a merge, mis-read the
message telling you to commit once you fixed the conflicts, fix
conflicts, and continue hacking. A message in "git status" when
.git/MERGE_HEAD exists would help a bit, like (depending on whether
the index still has conflicts):

# merge in progress (fix conflicts below and commit)

# merge in progress (use "git commit" to proceed)


If one adds an option to make it all-caps, red, and blinking, then
I'll activate it for my students ;-).

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

Re: [WIP/PATCH 0/4] Re: Making error messages stand out

From: Nguyen Thai Ngoc Duy <hidden>
Date: 2016-06-15 22:49:17

On Wed, Aug 11, 2010 at 7:39 PM, Matthieu Moy
[off-list ref] wrote:
Nguyen Thai Ngoc Duy [off-list ref] writes:
quoted
Even better, make it available for some time with, say "git hints".
After doing lots of things to resolve conflicts, I simply forget what
it hinted me.
Actually, I don't think we should add a new command for that, but add
something to "git status", like

$ git status
# On branch master
# rebase in progress (use "git rebase --continue" to proceed)
# ...

Same would apply to conflicting merges. It's very common for beginners
(especially when they come from SVN) to start a merge, mis-read the
message telling you to commit once you fixed the conflicts, fix
conflicts, and continue hacking. A message in "git status" when
.git/MERGE_HEAD exists would help a bit, like (depending on whether
the index still has conflicts):

# merge in progress (fix conflicts below and commit)

# merge in progress (use "git commit" to proceed)
Yes. Looks good. Except that I rarely use git-status these days. Maybe
that will motivate me to use that command more.
If one adds an option to make it all-caps, red, and blinking, then
I'll activate it for my students ;-).
I'd suggest you patch git-status with figlet to get some more attention :-)
-- 
Duy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help