Re: [PATCH v6 07/14] commit-graph: implement 'git-commit-graph write'
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Mar 18, 2018, 13:25 UTC
- Message-ID
- <87bmflcy8a.fsf@evledraar.gmail.com>
- In-Reply-To
- <20180314192736.70602-8-dstolee@microsoft.com>
On Wed, Mar 14 2018, Derrick Stolee jotted:
Show 15 quoted lines
> +'git commit-graph write' <options> [--object-dir <dir>] > + > + > +DESCRIPTION > +----------- > + > +Manage the serialized commit graph file. > + > + > +OPTIONS > +------- > +--object-dir:: > + Use given directory for the location of packfiles and commit graph > + file. The commit graph file is expected to be at <dir>/info/commit-graph > + and the packfiles are expected to be in <dir>/pack.
Maybe this was covered in a previous round, this series is a little hard to follow since each version isn't In-Reply-To the version before it, but why is this option needed, i.e. why would you do:
git commit-graph write --object-dir=/some/path/.git/objects
As opposed to just pigging-backing on what we already have with both of:
git --git-dir=/some/path/.git commit-graph write
git -C /some/path commit-graph writeIs there some use-case where you have *just* the objects dir and not the rest of the .git folder?