diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-04-06 13:38:27 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-04-06 13:38:27 -0700 |
commit | 119e82a515e279548cd82aaf74f75927c75adfa1 (patch) | |
tree | c52e8b7784817b92b4c390fc76ec3c5720c4eccf /commit-graph.c | |
parent | 7727da99dfab82148c5b77eaf334b305fb835956 (diff) | |
parent | d3af1c193d4d62668a9d7ea98e2ef3771ac4e65a (diff) | |
download | git-119e82a515e279548cd82aaf74f75927c75adfa1.tar.gz |
Merge branch 'ps/ahead-behind-truncation-fix'
Fix unnecessary truncation of generation numbers used in-core.
* ps/ahead-behind-truncation-fix:
commit-graph: fix truncated generation numbers
Diffstat (limited to 'commit-graph.c')
-rw-r--r-- | commit-graph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commit-graph.c b/commit-graph.c index 2ad09f35da..8fce79b39b 100644 --- a/commit-graph.c +++ b/commit-graph.c @@ -1566,7 +1566,7 @@ static timestamp_t get_generation_from_graph_data(struct commit *c, void *data) static void set_generation_v2(struct commit *c, timestamp_t t, void *data) { struct commit_graph_data *g = commit_graph_data_at(c); - g->generation = (uint32_t)t; + g->generation = t; } static void compute_generation_numbers(struct write_commit_graph_context *ctx) |