From: Sam Vilain <sam@vilain.net>
To: Carl Worth <cworth@cworth.org>
Cc: git@vger.kernel.org
Subject: Re: [RFC] Introduce "git stage" (along with some heresy)
Date: Sun, 03 Dec 2006 10:03:32 +1300 [thread overview]
Message-ID: <4571EA24.4080907@vilain.net> (raw)
In-Reply-To: <87slfzfri7.wl%cworth@cworth.org>
Carl Worth wrote:
> Change #2: Make a staged commit an explicit act
> ===============================================
> The "-a" stands out to me here as the only command-line option needed
> in the first list, and the only command in the second list that
> performs a staged operation by default. So change number to is to
> redefine "commit" to mean what "commit -a" meant before and to require
> a new command-line option for staged committing, (the best naming I
> have so far is "commit --staged" with a shortcut of "commit -i"---the
> mismatch of "'i' as short for --staged" is a bit unlovely I admit).
I wonder about backwards compatibility, but then another part of me says
that porcelain are probably using "git-commit-tree" anyway.
How about considering alternative words? Like "git save" for this
higher level and more user friendly interface.
As another idea (brainstorming here), what about an "autocommit" approach?
git rm # removes files and asks for commit message
git add # ditto
git commit # updates and commits everything
git stage # starts a staged commit
git add # modifies staging area
git rm # ditto
git stage filename # adds contents to staging area
git commit # saves staging area as commit
Then you could have "core.autocommit" as a repo-config option,
defaulting to off for "backwards compatibility".
> Change #3: Change "add" to not stage any content
> ================================================
> To finish off, I'd like to propose descriptions of the commands to
> allow the user to use the "without staging" commands as a complete set
> while being able to easily ignore any of the staging capabilities.
> This does trigger a need for a semantic change in the "add"
> command. Here are the proposed descriptions:
The "autocommit" concept may make this less of an issue.
next prev parent reply other threads:[~2006-12-02 21:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-01 17:36 [RFC] Introduce "git stage" (along with some heresy) Carl Worth
2006-12-01 20:03 ` Some thoughts on resolving conflicts Carl Worth
2006-12-01 20:44 ` [RFC] Introduce "git stage" (along with some heresy) Marko Macek
2006-12-02 21:03 ` Sam Vilain [this message]
2006-12-02 22:33 ` Wink Saville
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=4571EA24.4080907@vilain.net \
--to=sam@vilain.net \
--cc=cworth@cworth.org \
--cc=git@vger.kernel.org \
/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).