Re: [PATCH] rehabilitate 'git index-pack' inside the object store
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Oct 22, 2008, 14:04 UTC
- Message-ID
- <fcaeb9bf0810220704o7a0ed177u48dcada9391ec626@mail.gmail.com>
- In-Reply-To
- <alpine.DEB.1.00.0810211856090.22125@pacific.mpi-cbg.de.mpi-cbg.de>
On 10/22/08, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 9 quoted lines
> So I propose this change in semantics: > > - setup_git_directory_gently(): rename to discover_git_directory(), > and avoid any chdir() at all. > - setup_git_directory(): keep the semantics that it chdir()s to the > worktree, or to the git directory for bare repositories. > > Using _gently() even for RUN_SETUP builtins should solve the long standing > pager problem, too.
One more thing: "git foo -h" with RUN_SETUP won't run if repository is not found. Maybe just drop RUN_SETUP and let subcommands call setup_git_directory()
-- Duy