Thread (2 messages) 2 messages, 2 authors, 2016-06-15

Re: [PATCH 2/2 (v3)] reset: make the output more user-friendly.

From: Reece Dunn <hidden>
Date: 2016-06-15 22:47:18

2009/8/23 Matthieu Moy [off-list ref]:
For example, the output of 'git status' is very nice to newbies:

 # On branch master
 # Changed but not updated:
 #   (use "git add <file>..." to update what will be committed)
Shouldn't this be something like: (use "git add <file>..." to add new
and modified files to be committed) -- I am saying this as "update"
can also refer to removing files, or discarding changes.
 #   (use "git checkout -- <file>..." to discard changes in working directory)
 #
 #       modified:   git.c
 #
 no changes added to commit (use "git add" and/or "git commit -a")

But out of these 8 lines, only two contain real informations, and the
(use "git bla") are just noise to expert users.
Yes and no. Using git for quite a while now, the day-to-day operations
are second nature, but other slightly obscure commands (how exactly do
I remove a staged file?) are useful to have.
I've been thinking of a configuration option, like "core.expertuser"
or "ui.expertuser" that would let users disable these informative
messages on demand. I'm not sure how good the idea is.
The "core.expertuser" option does not really say what this is doing
(should the expertuser option list the sha1's for the commits, trees
and objects it is adding?).

I would call it something like "core.interactive-help",
"core.inplace-help" or "core.inline-help", as that is what the (use
...) lines are.

- Reece
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help