From: Christian Weisgerber Subject: Re: tog log: make ^L stick to current branch To: gameoftrees@openbsd.org Date: Sat, 5 Dec 2020 21:26:56 +0100 Stefan Sperling: > got up -b main > tog log -c mybranch > -> tog now displays commits starting at 'mybranch' > ^L > -> tog now displays commits starting at 'main' instead of 'mybranch' Here's another variant of this problem which your diff also fixes: cd repo.git tog log -c mybranch -> tog now displays commits starting at 'mybranch' ^L -> tog now displays commits starting at 'main' instead of 'mybranch' > This patch fixes the problem. If a reference is passed to the -c option, > remember this reference instead of the work tree's current branch. Yes. But now this happens: tog log -c 0.44 ^L tog: bad object data -- Christian "naddy" Weisgerber naddy@mips.inka.de