Skip to content

Search and set up repository early for builtin commands

Nguyễn Thái Ngọc Duy git 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest18 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18builtin: introduce startup_info structcache.h environment.c git.c +1 more+23 -50 replies
2/18builtin: Support RUN_SETUP_GENTLY to set up repository early if foundcache.h git.c setup.c+12 -40 replies
3/18config: use RUN_SETUP_GENTLYbuiltin/config.c git.c+4 -60 replies
4/18hash-object: use RUN_SETUP_GENTLYbuiltin/hash-object.c git.c+6 -50 replies
5/18shortlog: use RUN_SETUP_GENTLYbuiltin/shortlog.c git.c+2 -40 replies
6/18grep: use RUN_SETUP_GENTLYbuiltin/grep.c git.c+4 -70 replies
7/18builtin: USE_PAGER should not be used without RUN_SETUP*git.c+4 -10 replies
8/18archive: use RUN_SETUP_GENTLYbuiltin/archive.c git.c+3 -30 replies
9/18mailinfo: use RUN_SETUP_GENTLYbuiltin/mailinfo.c git.c+1 -40 replies
10/18check-ref-format: use RUN_SETUP_GENTLYgit.c+1 -10 replies
11/18verify-pack: use RUN_SETUP_GENTLYgit.c+1 -10 replies
12/18apply: use RUN_SETUP_GENTLYbuiltin/apply.c git.c+4 -50 replies
13/18bundle: use RUN_SETUP_GENTLYbuiltin/bundle.c git.c+3 -50 replies
14/18diff: use RUN_SETUP_GENTLYbuiltin/diff.c git.c+3 -50 replies
15/18help: use RUN_SETUP_GENTLYbuiltin/help.c git.c+1 -30 replies
16/18ls-remote: use RUN_SETUP_GENTLYbuiltin/ls-remote.c git.c+2 -50 replies
17/18var: use RUN_SETUP_GENTLYbuiltin/var.c git.c+1 -30 replies
18/18merge-file: use RUN_SETUP_GENTLYbuiltin/merge-file.c git.c+2 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/18] Search and set up repository early for builtin commands

This is a simpler part of my Git setup cleanup WIP [1], to introduce RUN_SETUP_GENTLY and make most of commands use it.

The commands that do not have RUN_SETUP* are:
- Init/Clone commands
- Server commands
- Helpers that have nothing to do with repositories
- git-rev-parse

[1] http://mid.gmane.org/[email protected]

Nguyễn Thái Ngọc Duy (18):
builtin: introduce startup_info struct
builtin: Support RUN_SETUP_GENTLY to set up repository early if found
config: use RUN_SETUP_GENTLY
hash-object: use RUN_SETUP_GENTLY
shortlog: use RUN_SETUP_GENTLY
grep: use RUN_SETUP_GENTLY
builtin: USE_PAGER should not be used without RUN_SETUP*
archive: use RUN_SETUP_GENTLY
mailinfo: use RUN_SETUP_GENTLY
check-ref-format: use RUN_SETUP_GENTLY
verify-pack: use RUN_SETUP_GENTLY
apply: use RUN_SETUP_GENTLY
bundle: use RUN_SETUP_GENTLY
diff: use RUN_SETUP_GENTLY
help: use RUN_SETUP_GENTLY
ls-remote: use RUN_SETUP_GENTLY
var: use RUN_SETUP_GENTLY
merge-file: use RUN_SETUP_GENTLY

 builtin/apply.c       |    7 ++---
 builtin/archive.c     |    2 +-
 builtin/bundle.c      |    6 +---
 builtin/config.c      |    6 +---
 builtin/diff.c        |    6 +---
 builtin/grep.c        |    9 ++-----
 builtin/hash-object.c |    9 ++++---
 builtin/help.c        |    2 -
 builtin/ls-remote.c   |    3 --
 builtin/mailinfo.c    |    3 --
 builtin/merge-file.c  |    4 +--
 builtin/shortlog.c    |    4 +--
 builtin/var.c         |    2 -
 cache.h               |    7 +++++
 environment.c         |    1 +
 git.c                 |   61 ++++++++++++++++++++++++++++---------------------
 setup.c               |   14 ++++++++++-
 17 files changed, 76 insertions(+), 70 deletions(-)