login
Header Space

 
 

Re: Why do git submodules require manual checkouts and commits?

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Johannes Schindelin <Johannes.Schindelin@...>
Cc: skillzero@gmail.com <skillzero@...>, <git@...>
Date: Friday, May 16, 2008 - 10:12 am

On 5/16/08, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:

I consider that one of the annoying details rather than a fundamental
flaw.  I agree that it's hard to solve though.

Think of it this way: I can commit, or not commit, my dirty Makefile
at the same time as everything else (in a single project) with a
single "git commit" line, depending on what I want to do.  Things like
"git commit -a" and "git add -u" speed up the common case where I just
want to commit everything.  But with submodules, that common case
looks more like this:

   cd sub
   git checkout -b manual_branchname_because_there_was_no_default
   git commit -a
   git push etc.
   cd ..
   git commit -a
   git push etc.

That's *really* tedious, and the number of commands multiplies when
you have more than one submodule going at once.

I think git's submodules are awesome because they *don't* have
fundamental flaws.  They just need an (optional) more automated
workflow for the common case.  And I'll be sure to propose one when I
figure out what my common case actually is :)

Have fun,

Avery
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Why do git submodules require manual checkouts and commi..., Johannes Schindelin, (Fri May 16, 9:58 am)
Re: Why do git submodules require manual checkouts and commi..., Avery Pennarun, (Fri May 16, 10:12 am)
Re: Why do git submodules require manual checkouts and commi..., Johannes Schindelin, (Fri May 16, 10:24 am)
Re: Why do git submodules require manual checkouts and commi..., Johannes Schindelin, (Fri May 16, 6:17 am)
speck-geostationary