Files
git/builtin
Derrick Stolee 124b05b230 rev-parse: integrate with sparse index
It is not obvious that the 'git rev-parse' builtin would use the sparse
index, but it is possible to parse paths out of the index using the
":<path>" syntax. The 'git rev-parse' output is only the OID of the
object found at that location, but otherwise behaves similarly to 'git
show :<path>'. This includes the failure conditions on directories and
the error messages depending on whether a path is in the worktree or
not.

The only code change required is to change the
command_requires_full_index setting in builtin/rev-parse.c, and we can
re-use many existing 'git show' tests for the rev-parse case.

Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2022-04-26 13:56:39 -07:00
..
2022-01-27 18:00:15 -08:00
2022-02-25 15:47:36 -08:00
2022-02-25 15:47:35 -08:00
2022-02-17 16:25:05 -08:00
2022-03-21 15:14:24 -07:00
2021-10-28 09:57:09 -07:00
2021-02-25 16:43:30 -08:00
2022-04-04 10:56:23 -07:00
2022-04-04 10:56:23 -07:00
2022-03-13 22:23:16 +00:00
2022-03-09 13:38:24 -08:00
2022-04-26 13:56:38 -07:00
2022-04-06 15:21:59 -07:00
2021-04-14 13:47:21 -07:00
2021-09-28 10:31:02 -07:00
2022-01-03 16:24:15 -08:00
2022-02-25 15:47:35 -08:00
2022-03-28 15:45:46 -07:00
2022-03-21 15:14:24 -07:00
2022-01-10 11:52:56 -08:00
2022-03-30 18:01:10 -07:00
2021-11-03 13:25:36 -07:00