From: Carl Worth <cworth@cworth.org>
To: Junio C Hamano <junkio@cox.net>
Cc: "David Kågedal" <davidk@lysator.liu.se>, git@vger.kernel.org
Subject: Re: [PATCH] git-status: wording update to deal with deleted files.
Date: Thu, 11 Jan 2007 15:56:57 -0800 [thread overview]
Message-ID: <87ac0pxgl2.wl%cworth@cworth.org> (raw)
In-Reply-To: <7vsleh16ey.fsf_-_@assigned-by-dhcp.cox.net>
[-- Attachment #1: Type: text/plain, Size: 2273 bytes --]
All very good stuff Junio, thanks.
In light of the big long message I just wrote, let me comment on the
changes you just made here.
On Thu, 11 Jan 2007 15:37:41 -0800, Junio C Hamano wrote:
> we used to say "git add ... to add content to commit". But
> suggsting "git add" to record the deletion of a file is simply
> insane.
I'm very happy to hear you agree that would be insane.
> - The section header is the old "Changed but not updated",
> instead of "Changed but not added";
Again, not only deletion, but another place where "add" doesn't work
universally. As I mentioned in my other thread, the experiment in
using "add" as a first-class porcelain for all index updating just
doesn't work everywhere.
The caution I would point out here is that we are now introducing a
term ("update") into the output-side of git's user-interface, but that
there's no corresponding "update" on the input side, (at least as far
as porcelain is concerned). So conceptually, the user can be left
with, "hmm... it's not updated, but how the heck do I update it?".
> - Suggestion is "git add ... to update what will be committed",
> instead of "... to add content to commit";
>
> - If there are removed paths, the above suggestion becomes "git
> add/rm ... to update what will be committed";
Here now we do start providing the user with some mechanisms for
"update". Sometimes we suggest using "add" to update, and sometimes we
suggest using "add" or "rm" to update. But as you yourself have
pointed out, you consider "rm" a totally pointless command.
Wouldn't git be simpler if it only provided one porcelain command for
updating content into the index? I proposed "stage" in my preceding
email---but I don't care what the actual term used is. But it should
definitely be a term that's consistent with the terms that git-status
uses to describe the state of these files.
> - For untracked files, the suggestion is "git add ... to
> include in what will be committed".
And here is where git-status points out that "git add" has another use
that's conceptually distinct from updating content. I think that
distinction should be made more clear by "git add" being a separate
command from whatever the porcelain for "update content into the
index" becomes.
-Carl
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-01-11 23:59 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-11 20:10 Removing files David Kågedal
2007-01-11 21:36 ` Alex Riesen
2007-01-11 22:25 ` Seth Falcon
2007-01-11 22:41 ` Junio C Hamano
2007-01-11 23:19 ` Eric Wong
2007-01-11 23:36 ` Junio C Hamano
2007-01-11 23:37 ` [PATCH] git-status: wording update to deal with deleted files Junio C Hamano
2007-01-11 23:56 ` Carl Worth [this message]
2007-01-12 0:13 ` Junio C Hamano
2007-01-12 1:28 ` Carl Worth
2007-01-12 19:48 ` Jakub Narebski
2007-01-12 0:07 ` Jeff King
2007-01-12 22:13 ` Juergen Ruehle
2007-01-11 23:41 ` Removing files Carl Worth
2007-01-12 0:17 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ac0pxgl2.wl%cworth@cworth.org \
--to=cworth@cworth.org \
--cc=davidk@lysator.liu.se \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).