Skip to content

pr-git-1145/hanwen/reflog-prelims-v3

This helps for reftable support, and will help if we want to reconsider
under which conditions reflogs get created/updated.

v3: pointer arithmetic for trimming newline.

Han-Wen Nienhuys (5):
  show-branch: show reflog message
  test-ref-store: don't add newline to reflog message
  t1405: check for_each_reflog_ent_reverse() more thoroughly
  test-ref-store: tweaks to for-each-reflog-ent format
  refs/debug: trim trailing LF from reflog message

 builtin/show-branch.c          | 12 +++++++-----
 refs/debug.c                   |  7 +++++--
 t/helper/test-ref-store.c      |  6 +++---
 t/t1400-update-ref.sh          | 13 ++++++++-----
 t/t1405-main-ref-store.sh      |  4 ++--
 t/t1406-submodule-ref-store.sh |  4 ++--
 t/t3202-show-branch.sh         | 15 +++++++++++++++
 7 files changed, 42 insertions(+), 19 deletions(-)

base-commit: abe6bb3905392d5eb6b01fa6e54d7e784e0522aa

Submitted-As: https://lore.kernel.org/git/pull.1145.v3.git.git.1638466593.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.1145.git.git.1637590855.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.1145.v2.git.git.1637855872.gitgitgadget@gmail.com
Assets 2