git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Is incremental staging really the common mode? [Was: Re: Git User's Survey 2008 partial summary, part 4 - how do we use Git]

From
Ddavid@lang.hm <david@lang.hm>
Date
Sep 8, 2008, 00:32 UTC
Message-ID
<alpine.DEB.1.10.0809071729310.8096@asgard.lang.hm>
In-Reply-To
<51419b2c0809071317g6f916b19p1c2792595be58047@mail.gmail.com>
On Sun, 7 Sep 2008, Elijah Newren wrote:
Show 28 quoted lines
> Hi,
>
> On Sat, Sep 6, 2008 at 4:17 PM, Jakub Narebski <jnareb@gmail.com> wrote:
>> This is partial summary of Git User's Survey 2008 after more that 2000
>> (yes, that is more than _two thousands_ responses) just after the 6 days
>> of running the survey.  It is based on "Analysis" page for this survey:
>>  http://www.survs.com/shareResults?survey=M3PIVU72&rndm=OKJQ45LAG8
>>
> <snip>
>> git add + git commit   | 65% (1012)
>> git commit -a          | 63%  (981)
> <snip>
>> Analysis: strangely "git add + git commit" is slightly more used than
>> "git commit -a"; I would suspect that "git commit -a" would dominate a
>> bit over other forms of committing.  What is for me more suprising is
>> that "git commit <file>..." has such large presence in often used
>> commands; I would think that it should be mostly used as 'sometimes'
>> command.
>
> Does this data really compare usage of incremental staging of commits
> vs. non-incremental all-changes-included commits?
>
> You didn't have a git add + git commit -a, so if people feel like they
> have brand new files to add to the repository often, adding new files
> alone would cause them to mark the git add + git commit box as "often"
> (or maybe I was the only one dumb enough to think this was
> significantly related to adding new files?).  That alone could account
> for the difference, assuming others misunderstood as I did.

also, how many are doing 'git add .' or 'git add *' followed by git commit?

there were several commands listed that I have never heard of before and will want to research to see what they do to see if I should be using them.

next survey it would be handy to have links from each command you are asking about to a page that describes what it does and why you would use it (_not_ just a link to the man page for git add in the example above)

David Lang
Previous: Elijah NewrenNext: Junio C Hamano
Message 2 of 4 in “Is incremental staging really the common mode? [Was: Re: Git User's Survey 2008 partial summary, part 4 - how do we use Git]”
  1. Elijah NewrenSep 7, 2008
  2. david@lang.hmSep 8, 2008
  3. Junio C HamanoSep 8, 2008
  4. david@lang.hmSep 8, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.