]> git.ipfire.org Git - thirdparty/git.git/commit - t/t3200-branch.sh
t: switch "branch -l" to "branch --create-reflog"
authorJeff King <peff@peff.net>
Fri, 22 Jun 2018 09:23:59 +0000 (05:23 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 22 Jun 2018 20:19:33 +0000 (13:19 -0700)
commit7687f19e939dd8c9a2a67ede31b019092f0a1ccf
tree2bde22a58070b5077c5477d65781fb96a8519547
parent6b155951510235e7eea77279c7eeea6ac3a8e700
t: switch "branch -l" to "branch --create-reflog"

In preparation for deprecating "-l", let's make sure we're
using the recommended option ourselves.

This patch just mechanically converts "branch -l" to "branch
--create-reflog".  Note that with the exception of the
actual "--create-reflog" test, we could actually remove "-l"
entirely from most of these callers. That's because these
days core.logallrefupdates defaults to true in a non-bare
repository.

I've left them in place, though, since they serve to
document the expectation of the test, even if they are
technically noops.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1410-reflog.sh
t/t3200-branch.sh