From: Jeff King <peff@peff.net>
To: "David A. Greene" <greened@obbligato.org>
Cc: Ramkumar Ramachandra <artagnon@gmail.com>,
David Greene <dag@cray.com>,
git@vger.kernel.org
Subject: Re: git-subtree
Date: Thu, 5 Jan 2012 10:47:40 -0500 [thread overview]
Message-ID: <20120105154740.GA11475@sigill.intra.peff.net> (raw)
In-Reply-To: <87ipkq199w.fsf@smith.obbligato.org>
On Thu, Jan 05, 2012 at 09:03:38AM -0600, David A. Greene wrote:
> > Please read and follow the guidelines listed in
> > Documentation/SubmittingPatches. The TL;DR version is: break it up
> > into logical reviewable commits based on the current `master` and use
> > git format-patch/ git send-email to send those commits to this mailing
> > list.
>
> I've read that document. The issue is that I didn't develop the code,
> Avery did. This is a completely new tool for git and I don't have the
> first idea of what "logical" chunks would look like. I assume, for
> example, that we'd want the first "chunk" to actually work and do
> something interesting. I can go spend a bunch of time to see if I can
> grok enough to create these chunks but I wanted to check first and make
> sure that would be absolutely necessary. It's a lot of time to learn a
> completely new codebase. I was hoping to submit something soon and then
> learn the codebase gradually during maintenance/further development.
I think this is also somewhat different in that git-subtree has a
multi-year history in git that we may want to keep. So it is more
analogous to something like gitweb or git-gui, which we have brought in
(using subtree merges, no less).
The biggest decision is whether or not to import the existing history.
If we do, then we have to decide whether it becomes a sub-component like
gitweb (e.g., it gets pulled into a "subtree" directory, and we have
make recurse into it), or whether it gets overlaid into the main
directory (i.e., we clean and munge the subtree repo a bit, then just
"git merge" the history in).
If we want to throw away the existing history, then I think you end up
doing the same munging as the latter option above, and then just make a
single patch out of it instead of a merge.
I don't use git-subtree, but just glancing over the repo, it looks like
that munging is mostly:
1. git-subtree.sh stays, and gets added to git.git's top-level Makefile
2. the test.sh script gets adapted into t/tXXXX-subtree.sh
3. git-subtree.txt goes into Documentation/
4. The rest of the files are infrastructure that can go away, as they
are a subset of what git.git already contains.
I'd favor keeping the history and doing the munge-overlay thing.
Although part of me wants to join the histories in a subtree so that we
can use "git subtree" to do it (which would just be cool), I think the
resulting code layout doesn't make much sense unless git-subtree is
going to be maintained separately.
-Peff
next prev parent reply other threads:[~2012-01-05 15:47 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-04 15:53 git-subtree David Greene
2012-01-05 11:28 ` git-subtree Ramkumar Ramachandra
2012-01-05 15:03 ` git-subtree David A. Greene
2012-01-05 15:32 ` git-subtree Ramkumar Ramachandra
2012-01-05 16:33 ` git-subtree David A. Greene
2012-01-06 1:53 ` git-subtree David A. Greene
2012-01-05 22:18 ` git-subtree David A. Greene
2012-01-05 15:47 ` Jeff King [this message]
2012-01-05 16:26 ` git-subtree David A. Greene
2012-01-29 22:07 ` git-subtree David A. Greene
2012-01-30 16:56 ` git-subtree David A. Greene
2012-01-05 22:16 ` git-subtree David A. Greene
2012-01-05 15:53 ` git-subtree Junio C Hamano
2012-01-05 16:48 ` git-subtree David A. Greene
2012-01-05 22:19 ` git-subtree David A. Greene
-- strict thread matches above, loose matches on Subject: below --
2021-11-14 10:11 git-subtree tqfx su
2021-11-15 8:12 ` git-subtree Fabian Stelzer
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=20120105154740.GA11475@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=artagnon@gmail.com \
--cc=dag@cray.com \
--cc=git@vger.kernel.org \
--cc=greened@obbligato.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).