]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'jk/reflog-special-cases-fix'
authorJunio C Hamano <gitster@pobox.com>
Tue, 5 Mar 2024 17:44:42 +0000 (09:44 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 5 Mar 2024 17:44:42 +0000 (09:44 -0800)
The logic to access reflog entries by date and number had ugly
corner cases at the boundaries, which have been cleaned up.

* jk/reflog-special-cases-fix:
  read_ref_at(): special-case ref@{0} for an empty reflog
  get_oid_basic(): special-case ref@{n} for oldest reflog entry
  Revert "refs: allow @{n} to work with n-sized reflog"

1  2 
refs.c
refs.h

diff --cc refs.c
Simple merge
diff --cc refs.h
Simple merge