git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[GSoC Patch v8 0/7] repo: add path keys to repo info

From
K Jayatheerth <jayatheerthkulkarni2005@gmail.com>
Date
Nov 7, 2026, 16:00 UTC
Message-ID
<20261107160100.122243-1-jayatheerthkulkarni2005@gmail.com>
In-Reply-To
<20260716012138.6714-1-jayatheerthkulkarni2005@gmail.com>

This patch series continues the work to expose repository paths and metadata via the `git repo info` command. It introduces several keys for querying repository paths in standard absolute and relative formats, as well as refactoring `get_superproject_working_tree()` to operate on a `struct repository *`.

The path keys added in this series are:
  - `path.toplevel.absolute` / `path.toplevel.relative`: The root directory
    of the working tree (or an empty string in bare repositories).
  - `path.superproject-root.absolute` / `path.superproject-root.relative`:
    The root of the superproject when inside a submodule.
  - `path.hooks.absolute` / `path.hooks.relative`: The repository's hooks
    directory (respecting `core.hooksPath`, including `/dev/null`).
  - `path.index.absolute` / `path.index.relative`: The repository's active
    index file.
  - `path.git-prefix`: The prefix from the worktree root to the current
    working directory.
  - `path.cdup`: The relative path from the current directory up to the
    worktree root.
Changes since v7:
  - Dropped `path.grafts`.
  - In patch 2 (`submodule: use repository to find superproject`), moved the
    test for `--git-dir` to `t/t1500-rev-parse.sh` exercising the existing
    `rev-parse --show-superproject-working-tree` interface (since
    `path.superproject-root` is only added in patch 3), and ensured clean
    isolation of test directories (`sub` and `super`).
  - In patch 3 (`path.superproject-root`), simplified the getter functions
    by eliminating redundant early returns.
  - In patch 4 (`path.hooks`):
    - Special-cased `/dev/null` in both `path.hooks.absolute` and
      `path.hooks.relative` to output `/dev/null` directly, making it easy
      for scripts to detect when hooks are disabled. Documented this
      behavior in `Documentation/git-repo.adoc`.
    - Reverted changes to the `test_repo_info_path` helper in
      `t/t1900-repo-info.sh` and wrote a standalone test block for the
      `/dev/null` case.
    - Set `hooksPath = /dev/null` directly in the config file rather than
      passing it through `git config core.hooksPath /dev/null` to prevent
      MSYS2 argument mangling on Windows (which rewrites `/dev/null` to
      `nul`), allowing the test to run portably on all platforms without
      requiring `!MINGW`.
  - In patch 7 (`path.cdup`), removed unnecessary braces on the single-line
    `if`, added an early return when invoked outside a worktree, and ensured
    `cd repo` in the test runs within a subshell.

Thanks to Justin Tobler and Lucas Seiki Oshiro for their reviews and mentorship.

K Jayatheerth (7):
  repo: add path.toplevel with absolute and relative suffix formatting
  submodule: use repository to find superproject
  repo: add path.superproject-root with absolute and relative suffixes
  repo: add path.hooks with absolute and relative suffixes
  repo: add path.index with absolute and relative suffixes
  repo: add path.git-prefix
  repo: add path.cdup
 Documentation/git-repo.adoc |  52 ++++++++++
 builtin/repo.c              | 131 +++++++++++++++++++++++++
 builtin/rev-parse.c         |   2 +-
 submodule.c                 |  43 +++++----
 submodule.h                 |   2 +-
 t/t1500-rev-parse.sh        |  20 ++++
 t/t1900-repo-info.sh        | 185 ++++++++++++++++++++++++++++++++++++
 7 files changed, 412 insertions(+), 23 deletions(-)
Range-diff against v7:
5:  351b4b7de7 ! 1:  27b9811163 repo: add path.grafts with absolute and relative suffixes
    @@ Metadata
     Author: K Jayatheerth <jayatheerthkulkarni2005@gmail.com>
     
      ## Commit message ##
    -    repo: add path.grafts with absolute and relative suffixes
    +    repo: add path.toplevel with absolute and relative suffix formatting
     
    -    The repository grafts file specifies alternate parent relationships for
    -    commits and may be used by repository tooling that needs to inspect or
    -    manage grafts. Scripts currently retrieve its location by invoking
    -    `git rev-parse --git-path info/grafts`.
    +    Scripts frequently need to find the root directory of a repository's
    +    working tree. Currently, this requires using `git rev-parse --show-toplevel`
    +    or inferring it from other repository information.
     
    -    Introduce `path.grafts.absolute` and `path.grafts.relative` keys to
    -    `git repo info`. This exposes the grafts file location as a scriptable
    -    config-like key using standard format rules, allowing scripts to
    -    retrieve it through the same interface as other repository path
    -    information.
    +    Introduce `path.toplevel.absolute` and `path.toplevel.relative` keys
    +    to `git repo info`. This allows scripts to retrieve the top-level
    +    working tree path in a predictable, strictly formatted manner without
    +    relying on `rev-parse`.
    +
    +    If requested in a bare repository where no working tree exists, the
    +    command returns an empty string.
     
         Mentored-by: Justin Tobler <jltobler@gmail.com>
         Mentored-by: Lucas Seiki Oshiro <lucasseikioshiro@gmail.com>
    @@ Documentation/git-repo.adoc: values that they return:
      `path.gitdir.relative`::
      	The path to the Git repository directory relative to the current working directory.
      
    -+`path.grafts.absolute`::
    -+	The canonical absolute path to the repository's graft file.
    -+	Respects the `GIT_GRAFT_FILE` environment override. The path is
    -+	returned regardless of whether the file currently exists on disk.
    ++`path.toplevel.absolute`::
    ++	The canonical absolute path to the top-level directory of the
    ++	repository's working tree. Outputs an empty string if the repository
    ++	is bare.
     +
    -+`path.grafts.relative`::
    -+	The path to the repository's graft file relative to the current
    -+	working directory. Respects the `GIT_GRAFT_FILE` environment
    -+	override. The path is returned regardless of whether the file
    -+	currently exists on disk.
    ++`path.toplevel.relative`::
    ++	The path to the top-level directory of the repository's working
    ++	tree relative to the current working directory. Outputs an empty
    ++	string if the repository is bare.
     +
    - `path.hooks.absolute`::
    - 	The canonical absolute path to the repository's hooks directory.
    - 	Respects the `core.hooksPath` configuration. If `core.hooksPath` is
    + `references.format`::
    + 	The reference storage format. The valid values are:
    + +
     
      ## builtin/repo.c ##
     @@ builtin/repo.c: static int get_path_gitdir_relative(struct repository *repo, struct strbuf *buf)
      	return 0;
      }
      
    -+static int get_path_grafts_absolute(struct repository *repo, struct strbuf *buf)
    ++static int get_path_toplevel_absolute(struct repository *repo, struct strbuf *buf)
     +{
    -+	const char *graft_file = repo_get_graft_file(repo);
    ++	const char *work_tree = repo_get_work_tree(repo);
     +
    -+	if (!graft_file)
    -+		return error(_("unable to get graft file"));
    ++	if (!work_tree)
    ++		return 0;
     +
    -+	format_path(buf, graft_file, "", PATH_FORMAT_CANONICAL);
    ++	format_path(buf, work_tree, "", PATH_FORMAT_CANONICAL);
     +	return 0;
     +}
     +
    -+static int get_path_grafts_relative(struct repository *repo, struct strbuf *buf)
    ++static int get_path_toplevel_relative(struct repository *repo, struct strbuf *buf)
     +{
    -+	const char *graft_file = repo_get_graft_file(repo);
    ++	const char *work_tree = repo_get_work_tree(repo);
     +
    -+	if (!graft_file)
    -+		return error(_("unable to get graft file"));
    ++	if (!work_tree)
    ++		return 0;
     +
    -+	format_path(buf, graft_file, repo->prefix, PATH_FORMAT_RELATIVE);
    ++	format_path(buf, work_tree, repo->prefix, PATH_FORMAT_RELATIVE);
     +	return 0;
     +}
     +
    - static int get_path_hooks_absolute(struct repository *repo, struct strbuf *buf)
    + static int get_references_format(struct repository *repo, struct strbuf *buf)
      {
    - 	struct strbuf hooks_path = STRBUF_INIT;
    + 	strbuf_addstr(buf,
     @@ builtin/repo.c: static const struct repo_info_field repo_info_field[] = {
      	{ "path.commondir.relative", get_path_commondir_relative },
      	{ "path.gitdir.absolute", get_path_gitdir_absolute },
      	{ "path.gitdir.relative", get_path_gitdir_relative },
    -+	{ "path.grafts.absolute", get_path_grafts_absolute },
    -+	{ "path.grafts.relative", get_path_grafts_relative },
    - 	{ "path.hooks.absolute", get_path_hooks_absolute },
    - 	{ "path.hooks.relative", get_path_hooks_relative },
    - 	{ "path.index.absolute", get_path_index_absolute },
    ++	{ "path.toplevel.absolute", get_path_toplevel_absolute },
    ++	{ "path.toplevel.relative", get_path_toplevel_relative },
    + 	{ "references.format", get_references_format },
    + };
    + 
     
      ## t/t1900-repo-info.sh ##
     @@ t/t1900-repo-info.sh: test_repo_info_path 'gitdir with explicit GIT_DIR' 'gitdir' \
      	'.git' \
      	'GIT_DIR="../.git" && export GIT_DIR'
      
    -+test_repo_info_path 'grafts standard' 'grafts' '.git/info/grafts'
    ++test_expect_success 'path.toplevel absolute and relative' '
    ++	test_when_finished "rm -rf repo" &&
    ++	git init repo &&
    ++	(
    ++		mkdir -p repo/sub &&
    ++		cd repo/sub &&
     +
    -+test_repo_info_path 'grafts with GIT_GRAFT_FILE override' 'grafts' \
    -+	'custom-graft-file' \
    -+	'GIT_GRAFT_FILE="$ROOT/custom-graft-file" && export GIT_GRAFT_FILE'
    ++		ROOT="$(test-tool path-utils real_path ..)" &&
     +
    - test_repo_info_path 'hooks standard' 'hooks' '.git/hooks'
    - 
    - test_repo_info_path 'hooks with core.hooksPath override' 'hooks' \
    ++		echo "path.toplevel.absolute=$ROOT" >expect.abs &&
    ++		git repo info path.toplevel.absolute >actual.abs &&
    ++		test_cmp expect.abs actual.abs &&
    ++
    ++		echo "path.toplevel.relative=../" >expect.rel &&
    ++		git repo info path.toplevel.relative >actual.rel &&
    ++		test_cmp expect.rel actual.rel
    ++	)
    ++'
    ++
    ++test_expect_success 'path.toplevel absolute and relative in a bare repository' '
    ++	test_when_finished "rm -rf bare.git" &&
    ++	git init --bare bare.git &&
    ++	(
    ++		cd bare.git &&
    ++
    ++		echo "path.toplevel.absolute=" >expect.abs &&
    ++		git repo info path.toplevel.absolute >actual.abs &&
    ++		test_cmp expect.abs actual.abs &&
    ++
    ++		echo "path.toplevel.relative=" >expect.rel &&
    ++		git repo info path.toplevel.relative >actual.rel &&
    ++		test_cmp expect.rel actual.rel
    ++	)
    ++'
    ++
    + test_done
1:  7c90603a1b ! 2:  2274dd8be2 submodule: use repository to find superproject
    @@ submodule.h: void absorb_git_dir_into_superproject(const char *path,
      
      #endif
     
    - ## t/t7400-submodule-basic.sh ##
    -@@ t/t7400-submodule-basic.sh: test_expect_success 'submodule add fails when name is reused' '
    + ## t/t1500-rev-parse.sh ##
    +@@ t/t1500-rev-parse.sh: test_expect_success ':/ and HEAD^{/} favor more recent matching commits' '
      	)
      '
      
    -+test_expect_success 'path.superproject-root works with --git-dir' '
    ++test_expect_success '--show-superproject-working-tree works with --git-dir' '
    ++	rm -rf sub super &&
     +	test_when_finished "rm -rf sub super" &&
     +	git init sub &&
     +	test_commit -C sub initial &&
    @@ t/t7400-submodule-basic.sh: test_expect_success 'submodule add fails when name i
     +		SUPER_ROOT="$(test-tool path-utils real_path .)" &&
     +		MODULE_DIR="$SUPER_ROOT/.git/modules/sub" &&
     +
    -+		echo "path.superproject-root.absolute=$SUPER_ROOT" >expect &&
    -+		git --git-dir="$MODULE_DIR" repo info path.superproject-root.absolute >actual &&
    ++		echo "$SUPER_ROOT" >expect &&
    ++		git --git-dir="$MODULE_DIR" rev-parse --show-superproject-working-tree >actual &&
     +		test_cmp expect actual
     +	)
     +'
2:  1bfb0c8c1d ! 3:  34c54cdafd repo: add path.superproject-root with absolute and relative suffixes
    @@ builtin/repo.c: static int get_path_gitdir_relative(struct repository *repo, str
     +{
     +	struct strbuf superproject = STRBUF_INIT;
     +
    -+	if (!get_superproject_working_tree(repo, &superproject)) {
    -+		strbuf_release(&superproject);
    -+		return 0;
    -+	}
    ++	if (get_superproject_working_tree(repo, &superproject))
    ++		format_path(buf, superproject.buf, "", PATH_FORMAT_CANONICAL);
     +
    -+	format_path(buf, superproject.buf, "", PATH_FORMAT_CANONICAL);
     +	strbuf_release(&superproject);
     +	return 0;
     +}
    @@ builtin/repo.c: static int get_path_gitdir_relative(struct repository *repo, str
     +{
     +	struct strbuf superproject = STRBUF_INIT;
     +
    -+	if (!get_superproject_working_tree(repo, &superproject)) {
    -+		strbuf_release(&superproject);
    -+		return 0;
    -+	}
    ++	if (get_superproject_working_tree(repo, &superproject))
    ++		format_path(buf, superproject.buf, repo->prefix, PATH_FORMAT_RELATIVE);
     +
    -+	format_path(buf, superproject.buf, repo->prefix, PATH_FORMAT_RELATIVE);
     +	strbuf_release(&superproject);
     +	return 0;
     +}
3:  09d2937fcd ! 4:  985403c7b3 repo: add path.hooks with absolute and relative suffixes
    @@ Documentation/git-repo.adoc: values that they return:
     +
     +`path.hooks.relative`::
     +	The path to the repository's hooks directory relative to the current
    -+	working directory. Respects the `core.hooksPath` configuration.
    ++	working directory. Respects the `core.hooksPath` configuration. If
    ++	`core.hooksPath` is set to `/dev/null`, that value is returned unchanged.
     +
      `path.superproject-root.absolute`::
      	The canonical absolute path to the working tree root of the superproject
    @@ builtin/repo.c: static int get_path_gitdir_relative(struct repository *repo, str
     +	struct strbuf hooks_path = STRBUF_INIT;
     +
     +	repo_git_path_replace(repo, &hooks_path, "hooks");
    -+	format_path(buf, hooks_path.buf, "", PATH_FORMAT_CANONICAL);
    ++	if (!strcmp(hooks_path.buf, "/dev/null"))
    ++		strbuf_addstr(buf, "/dev/null");
    ++	else
    ++		format_path(buf, hooks_path.buf, "", PATH_FORMAT_CANONICAL);
    ++
     +	strbuf_release(&hooks_path);
     +	return 0;
     +}
    @@ builtin/repo.c: static int get_path_gitdir_relative(struct repository *repo, str
     +	struct strbuf hooks_path = STRBUF_INIT;
     +
     +	repo_git_path_replace(repo, &hooks_path, "hooks");
    -+	format_path(buf, hooks_path.buf, repo->prefix, PATH_FORMAT_RELATIVE);
    ++	if (!strcmp(hooks_path.buf, "/dev/null"))
    ++		strbuf_addstr(buf, "/dev/null");
    ++	else
    ++		format_path(buf, hooks_path.buf, repo->prefix, PATH_FORMAT_RELATIVE);
    ++
     +	strbuf_release(&hooks_path);
     +	return 0;
     +}
    @@ builtin/repo.c: static const struct repo_info_field repo_info_field[] = {
      	{ "path.toplevel.absolute", get_path_toplevel_absolute },
     
      ## t/t1900-repo-info.sh ##
    -@@ t/t1900-repo-info.sh: test_repo_info_path () {
    - 			cd repo/sub &&
    - 			ROOT="$(test-tool path-utils real_path ..)" && export ROOT &&
    - 			eval "$init_command" &&
    --			echo "path.$field_name.absolute=$ROOT/$expected_dir" >expect &&
    -+			case "$expected_dir" in
    -+			/*) EXPECT_ABS="$expected_dir" ;;
    -+			*) EXPECT_ABS="$ROOT/$expected_dir" ;;
    -+			esac &&
    -+			echo "path.$field_name.absolute=$EXPECT_ABS" >expect &&
    - 			git repo info "path.$field_name.absolute" >actual &&
    - 			test_cmp expect actual
    - 		)
    -@@ t/t1900-repo-info.sh: test_repo_info_path () {
    - 			cd repo/sub &&
    - 			ROOT="$(test-tool path-utils real_path ..)" && export ROOT &&
    - 			eval "$init_command" &&
    --			echo "path.$field_name.relative=../$expected_dir" >expect &&
    -+			case "$expected_dir" in
    -+			/*) EXPECT_REL="$(test-tool path-utils relative_path "$expected_dir" "$PWD")" ;;
    -+			*) EXPECT_REL="../$expected_dir" ;;
    -+			esac &&
    -+			echo "path.$field_name.relative=$EXPECT_REL" >expect &&
    - 			git repo info "path.$field_name.relative" >actual &&
    - 			test_cmp expect actual
    - 		)
     @@ t/t1900-repo-info.sh: test_repo_info_path 'gitdir with explicit GIT_DIR' 'gitdir' \
      	'.git' \
      	'GIT_DIR="../.git" && export GIT_DIR'
    @@ t/t1900-repo-info.sh: test_repo_info_path 'gitdir with explicit GIT_DIR' 'gitdir
     +	'custom-hooks' \
     +	'git config core.hooksPath "$ROOT/custom-hooks" && mkdir -p "$ROOT/custom-hooks"'
     +
    -+# /dev/null is not a real, canonicalizable filesystem path on Windows,
    -+# so path resolution for core.hooksPath=/dev/null cannot be expected to
    -+# produce a literal "/dev/null" the way it does on POSIX systems.
    -+if ! test_have_prereq MINGW
    -+then
    -+	test_repo_info_path 'hooks with core.hooksPath=/dev/null' 'hooks' \
    -+		'/dev/null' \
    -+		'git config core.hooksPath /dev/null'
    -+fi
    ++test_expect_success 'hooks with core.hooksPath=/dev/null' '
    ++	test_when_finished "rm -rf repo" &&
    ++	git init repo &&
    ++	(
    ++		mkdir -p repo/sub &&
    ++		cd repo/sub &&
    ++		cat >>../.git/config <<-\EOF &&
    ++		[core]
    ++			hooksPath = /dev/null
    ++		EOF
    ++		echo "path.hooks.absolute=/dev/null" >expect.abs &&
    ++		echo "path.hooks.relative=/dev/null" >expect.rel &&
    ++		git repo info path.hooks.absolute >actual.abs &&
    ++		git repo info path.hooks.relative >actual.rel &&
    ++		test_cmp expect.abs actual.abs &&
    ++		test_cmp expect.rel actual.rel
    ++	)
    ++'
     +
      test_expect_success 'path.superproject-root absolute and relative' '
      	test_when_finished "rm -rf sub super" &&
4:  d0c186f150 ! 5:  486836ae52 repo: add path.index with absolute and relative suffixes
    @@ Commit message
     
      ## Documentation/git-repo.adoc ##
     @@ Documentation/git-repo.adoc: values that they return:
    - 	The path to the repository's hooks directory relative to the current
    - 	working directory. Respects the `core.hooksPath` configuration.
    + 	working directory. Respects the `core.hooksPath` configuration. If
    + 	`core.hooksPath` is set to `/dev/null`, that value is returned unchanged.
      
     +`path.index.absolute`::
     +	The canonical absolute path to the repository's current index file.
    @@ builtin/repo.c: static const struct repo_info_field repo_info_field[] = {
      	{ "path.toplevel.absolute", get_path_toplevel_absolute },
     
      ## t/t1900-repo-info.sh ##
    -@@ t/t1900-repo-info.sh: then
    - 		'git config core.hooksPath /dev/null'
    - fi
    +@@ t/t1900-repo-info.sh: test_expect_success 'hooks with core.hooksPath=/dev/null' '
    + 	)
    + '
      
     +test_repo_info_path 'index standard' 'index' '.git/index'
     +
6:  ef69d4aa8c ! 6:  91a8dc3ab1 repo: add path.git-prefix
    @@ builtin/repo.c: static const struct repo_info_field repo_info_field[] = {
     +	{ "path.git-prefix", get_path_git_prefix },
      	{ "path.gitdir.absolute", get_path_gitdir_absolute },
      	{ "path.gitdir.relative", get_path_gitdir_relative },
    - 	{ "path.grafts.absolute", get_path_grafts_absolute },
    + 	{ "path.hooks.absolute", get_path_hooks_absolute },
     
      ## t/t1900-repo-info.sh ##
     @@ t/t1900-repo-info.sh: test_repo_info_path 'commondir with only GIT_DIR' 'commondir' \
7:  3e61728dba ! 7:  84a9fb4060 repo: add path.cdup
    @@ builtin/repo.c: static int get_object_format(struct repository *repo, struct str
     +	if (!is_inside_work_tree(repo)) {
     +		const char *worktree = repo_get_work_tree(repo);
     +
    -+		if (worktree) {
    ++		if (worktree)
     +			strbuf_addstr(buf, worktree);
    -+		}
    ++		return 0;
     +	}
     +
     +	while (pfx) {
    @@ t/t1900-repo-info.sh: test_repo_info_path 'commondir with only GIT_DIR' 'commond
     +test_expect_success 'path.cdup cwd outside the working tree' '
     +	test_when_finished "rm -rf repo" &&
     +	mkdir -p repo/tmp/x &&
    -+	cd repo &&
    -+	git init test &&
     +	(
    -+		echo path.cdup=$(pwd)/tmp/x >./test/expect &&
    ++		cd repo &&
    ++		git init test &&
    ++		echo "path.cdup=$(pwd)/tmp/x" >test/expect &&
     +		cd test &&
     +		GIT_WORK_TREE=../tmp/x &&
     +		export GIT_WORK_TREE &&
-- 
2.56.0-rc2
Previous: Junio C HamanoNext: K Jayatheerth
Message 110 of 135 in “repo: add more path keys to git repo info”
  1. 0/7 repo: add more path keys to git repo infoK Jayatheerth, Jul 16, 2026
  2. 1/7 repo: add path.toplevel with absolute and relative suffix formattingK Jayatheerth, Jul 16, 2026
  3. Lucas Seiki OshiroAug 15, 2026
  4. K JayatheerthAug 18, 2026
  5. 2/7 repo: add path.superproject-working-tree with absolute and relative suffixesK Jayatheerth, Jul 16, 2026
  6. 3/7 repo: add path.objects with absolute and relative suffix formattingK Jayatheerth, Jul 16, 2026
  7. 4/7 repo: add path.hooks with absolute and relative suffix formattingK Jayatheerth, Jul 16, 2026
  8. 5/7 repo: add path.index with absolute and relative suffix formattingK Jayatheerth, Jul 16, 2026
  9. 6/7 repo: add path.grafts with absolute and relative suffix formattingK Jayatheerth, Jul 16, 2026
  10. 7/7 repo: add path.git-prefix path key validationK Jayatheerth, Jul 16, 2026
  11. Junio C HamanoJul 16, 2026
  12. K JayatheerthJul 16, 2026
  13. 0/7 repo: add more path keys to git repo infoK Jayatheerth, Jul 17, 2026
  14. 1/7 repo: add path.toplevel with absolute and relative suffix formattingK Jayatheerth, Jul 17, 2026
  15. 2/7 repo: add path.superproject-working-tree with absolute and relative suffixesK Jayatheerth, Jul 17, 2026
  16. 3/7 repo: add path.objects with absolute and relative suffix formattingK Jayatheerth, Jul 17, 2026
  17. 4/7 repo: add path.hooks with absolute and relative suffix formattingK Jayatheerth, Jul 17, 2026
  18. 5/7 repo: add path.index with absolute and relative suffix formattingK Jayatheerth, Jul 17, 2026
  19. Lucas Seiki OshiroJul 20, 2026
  20. K JayatheerthJul 24, 2026
  21. Junio C HamanoJul 24, 2026
  22. 6/7 repo: add path.grafts with absolute and relative suffix formattingK Jayatheerth, Jul 17, 2026
  23. Lucas Seiki OshiroJul 20, 2026
  24. Junio C HamanoJul 20, 2026
  25. K JayatheerthJul 21, 2026
  26. 7/7 repo: add path.git-prefix path keyK Jayatheerth, Jul 17, 2026
  27. 0/7 repo: add more path keys to git repo infoK Jayatheerth, Jul 26, 2026
  28. 1/7 repo: add path.toplevel with absolute and relative suffix formattingK Jayatheerth, Jul 26, 2026
  29. Junio C HamanoJul 27, 2026
  30. K JayatheerthJul 28, 2026
  31. Justin ToblerJul 28, 2026
  32. K JayatheerthJul 29, 2026
  33. 2/7 repo: add path.superproject-working-tree with absolute and relative suffixesK Jayatheerth, Jul 26, 2026
  34. Justin ToblerJul 28, 2026
  35. 3/7 repo: add path.objects with absolute and relative suffix formattingK Jayatheerth, Jul 26, 2026
  36. Justin ToblerJul 28, 2026
  37. 4/7 repo: add path.hooks with absolute and relative suffix formattingK Jayatheerth, Jul 26, 2026
  38. Justin ToblerJul 28, 2026
  39. 5/7 repo: add path.index with absolute and relative suffix formattingK Jayatheerth, Jul 26, 2026
  40. 6/7 repo: add path.grafts with absolute and relative suffix formattingK Jayatheerth, Jul 26, 2026
  41. 7/7 repo: add path.git-prefix path keyK Jayatheerth, Jul 26, 2026
  42. Junio C HamanoJul 26, 2026
  43. K JayatheerthJul 26, 2026
  44. Lucas Seiki OshiroJul 27, 2026
  45. Junio C HamanoJul 27, 2026
  46. 0/7 repo: add more path keys to git repo infoK Jayatheerth, Aug 6, 2026
  47. 1/7 repo: add path.toplevel with absolute and relative suffix formattingK Jayatheerth, Aug 6, 2026
  48. 2/7 repo: add path.superproject-root with absolute and relative suffixesK Jayatheerth, Aug 6, 2026
  49. 3/7 repo: add path.hooks with absolute and relative suffixesK Jayatheerth, Aug 6, 2026
  50. 4/7 repo: add path.index with absolute and relative suffixesK Jayatheerth, Aug 6, 2026
  51. 5/7 repo: add path.grafts with absolute and relative suffixesK Jayatheerth, Aug 6, 2026
  52. 6/7 repo: add path.git-prefixK Jayatheerth, Aug 6, 2026
  53. Lucas Seiki OshiroAug 16, 2026
  54. K JayatheerthAug 18, 2026
  55. Junio C HamanoAug 18, 2026
  56. K JayatheerthAug 21, 2026
  57. 7/7 repo: remove unused setup.h includeK Jayatheerth, Aug 6, 2026
  58. 0/7 add more path keys to git repo infoK Jayatheerth, Aug 25, 2026
  59. 1/7 repo: add path.toplevel with absolute and relative suffix formattingK Jayatheerth, Aug 25, 2026
  60. 2/7 repo: add path.superproject-root with absolute and relative suffixesK Jayatheerth, Aug 25, 2026
  61. Junio C HamanoSep 4, 2026
  62. K JayatheerthSep 5, 2026
  63. 3/7 repo: add path.hooks with absolute and relative suffixesK Jayatheerth, Aug 25, 2026
  64. 4/7 repo: add path.index with absolute and relative suffixesK Jayatheerth, Aug 25, 2026
  65. 5/7 repo: add path.grafts with absolute and relative suffixesK Jayatheerth, Aug 25, 2026
  66. 6/7 repo: add path.git-prefixK Jayatheerth, Aug 25, 2026
  67. 7/7 repo: add path.cdupK Jayatheerth, Aug 25, 2026
  68. Junio C HamanoAug 25, 2026
  69. K JayatheerthSep 4, 2026
  70. SZEDER GáborAug 26, 2026
  71. Junio C HamanoAug 26, 2026
  72. 0/7 add more path keys to git repo infoK Jayatheerth, Sep 11, 2026
  73. 1/7 repo: add path.toplevel with absolute and relative suffix formattingK Jayatheerth, Sep 11, 2026
  74. 2/7 repo: add path.superproject-root with absolute and relative suffixesK Jayatheerth, Sep 11, 2026
  75. Junio C HamanoSep 11, 2026
  76. K JayatheerthSep 23, 2026
  77. 3/7 repo: add path.hooks with absolute and relative suffixesK Jayatheerth, Sep 11, 2026
  78. 4/7 repo: add path.index with absolute and relative suffixesK Jayatheerth, Sep 11, 2026
  79. Junio C HamanoSep 11, 2026
  80. K JayatheerthSep 23, 2026
  81. 5/7 repo: add path.grafts with absolute and relative suffixesK Jayatheerth, Sep 11, 2026
  82. 6/7 repo: add path.git-prefixK Jayatheerth, Sep 11, 2026
  83. 7/7 repo: add path.cdupK Jayatheerth, Sep 11, 2026
  84. Junio C HamanoSep 11, 2026
  85. K JayatheerthSep 23, 2026
  86. 0/8 add more path keys to git repo infoK Jayatheerth, Sep 27, 2026
  87. 1/8 repo: add path.toplevel with absolute and relative suffix formattingK Jayatheerth, Sep 27, 2026
  88. 2/8 submodule: use repository to find superprojectK Jayatheerth, Sep 27, 2026
  89. Justin ToblerNov 2, 2026
  90. K JayatheerthNov 3, 2026
  91. 3/8 repo: add path.superproject-root with absolute and relative suffixesK Jayatheerth, Sep 27, 2026
  92. Justin ToblerNov 2, 2026
  93. K JayatheerthNov 3, 2026
  94. 4/8 repo: add path.hooks with absolute and relative suffixesK Jayatheerth, Sep 27, 2026
  95. Justin ToblerNov 2, 2026
  96. K JayatheerthNov 3, 2026
  97. Justin ToblerNov 3, 2026
  98. K JayatheerthNov 3, 2026
  99. 5/8 repo: add path.index with absolute and relative suffixesK Jayatheerth, Sep 27, 2026
  100. 6/8 repo: add path.grafts with absolute and relative suffixesK Jayatheerth, Sep 27, 2026
  101. Justin ToblerNov 2, 2026
  102. K JayatheerthNov 3, 2026
  103. 7/8 repo: add path.git-prefixK Jayatheerth, Sep 27, 2026
  104. 8/8 repo: add path.cdupK Jayatheerth, Sep 27, 2026
  105. Justin ToblerNov 2, 2026
  106. K JayatheerthNov 3, 2026
  107. Junio C HamanoNov 1, 2026
  108. Justin ToblerNov 1, 2026
  109. Junio C HamanoNov 2, 2026
  110. 0/7 repo: add path keys to repo infoK Jayatheerth, Nov 7, 2026
  111. 1/7 repo: add path.toplevel with absolute and relative suffix formattingK Jayatheerth, Nov 7, 2026
  112. 2/7 submodule: use repository to find superprojectK Jayatheerth, Nov 7, 2026
  113. 3/7 repo: add path.superproject-root with absolute and relative suffixesK Jayatheerth, Nov 7, 2026
  114. 4/7 repo: add path.hooks with absolute and relative suffixesK Jayatheerth, Nov 7, 2026
  115. 5/7 repo: add path.index with absolute and relative suffixesK Jayatheerth, Nov 7, 2026
  116. 6/7 repo: add path.git-prefixK Jayatheerth, Nov 7, 2026
  117. 7/7 repo: add path.cdupK Jayatheerth, Nov 7, 2026
  118. Phillip WoodNov 7, 2026
  119. K JayatheerthNov 9, 2026
  120. Junio C HamanoNov 9, 2026
  121. Phillip WoodNov 10, 2026
  122. K JayatheerthNov 11, 2026
  123. Phillip WoodNov 10, 2026
  124. K JayatheerthNov 11, 2026
  125. Phillip WoodNov 11, 2026
  126. 0/5 repo: add path keys to repo infoK Jayatheerth, Nov 14, 2026
  127. 1/5 repo: add path.workingtree with absolute and relative suffix formattingK Jayatheerth, Nov 14, 2026
  128. 2/5 submodule: use repository to find superprojectK Jayatheerth, Nov 14, 2026
  129. 3/5 repo: add path.superprojectworkingtree with absolute and relative suffixesK Jayatheerth, Nov 14, 2026
  130. 4/5 repo: add path.index with absolute and relative suffixesK Jayatheerth, Nov 14, 2026
  131. 5/5 repo: add path.prefixK Jayatheerth, Nov 14, 2026
  132. Phillip WoodNov 15, 2026
  133. K JayatheerthNov 15, 2026
  134. Phillip WoodNov 15, 2026
  135. K JayatheerthNov 16, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.