-
Notifications
You must be signed in to change notification settings - Fork 27.8k
Comparing changes
Open a pull request
base repository: git/git
base: 2e3028a58c1f1fbf08538443fc30a48ac4f6bacf
head repository: git/git
compare: 109bcb7d1d2f0d2f0514beec15779190c0b89575
- 7 commits
- 38 files changed
- 2 contributors
Commits on Apr 1, 2026
-
Merge branch 'ps/odb-generic-object-name-handling' into ps/odb-cleanup
* ps/odb-generic-object-name-handling: odb: introduce generic `odb_find_abbrev_len()` object-file: move logic to compute packed abbreviation length object-name: move logic to compute loose abbreviation length object-name: simplify computing common prefixes object-name: abbreviate loose object names without `disambiguate_state` object-name: merge `update_candidates()` and `match_prefix()` object-name: backend-generic `get_short_oid()` object-name: backend-generic `repo_collect_ambiguous()` object-name: extract function to parse object ID prefixes object-name: move logic to iterate through packed prefixed objects object-name: move logic to iterate through loose prefixed objects odb: introduce `struct odb_for_each_object_options` oidtree: extend iteration to allow for arbitrary return codes oidtree: modernize the code a bit object-file: fix sparse 'plain integer as NULL pointer' error
Configuration menu - View commit details
-
Copy full SHA for e104e63 - Browse repository at this point
Copy the full SHA e104e63View commit details -
CodingGuidelines: document our style for flags
We have recently iterated a bit on our style for flags. Document this. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Configuration menu - View commit details
-
Copy full SHA for 55903dc - Browse repository at this point
Copy the full SHA 55903dcView commit details -
treewide: use enum for
odb_for_each_object()flagsWe've got a couple of callsites where we pass `odb_for_each_object()` flags, but accept an `unsigned` flags field instead of the corresponding enum. Adapt these to accept the enum type instead. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Configuration menu - View commit details
-
Copy full SHA for 75c7026 - Browse repository at this point
Copy the full SHA 75c7026View commit details -
odb: rename
odb_write_object()flagsRename `odb_write_object()` flags to be properly prefixed with the function name. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Configuration menu - View commit details
-
Copy full SHA for ff2e9d8 - Browse repository at this point
Copy the full SHA ff2e9d8View commit details -
odb: use enum for
odb_write_objectflagsWe've got a couple of functions that accept `odb_write_object()` flags, but all of them accept the flags as an `unsigned` integer. In fact, we don't even have an `enum` for the flags field. Introduce this `enum` and adapt functions accordingly according to our coding style. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Configuration menu - View commit details
-
Copy full SHA for b2d421e - Browse repository at this point
Copy the full SHA b2d421eView commit details -
odb: rename
odb_has_object()flagsRename `odb_has_object()` flags to be properly prefixed with the function name. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Configuration menu - View commit details
-
Copy full SHA for c63911b - Browse repository at this point
Copy the full SHA c63911bView commit details -
odb: drop unneeded headers and forward decls
There's a couple of unneeded forward declarations and headers in "odb.h". Drop these. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Configuration menu - View commit details
-
Copy full SHA for 109bcb7 - Browse repository at this point
Copy the full SHA 109bcb7View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 2e3028a58c1f1fbf08538443fc30a48ac4f6bacf...109bcb7d1d2f0d2f0514beec15779190c0b89575