git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git switch after bisect finished
@ 2021-09-04  8:27 Ed Avis
  0 siblings, 0 replies; only message in thread
From: Ed Avis @ 2021-09-04  8:27 UTC (permalink / raw)
  To: git

Normally 'git switch -' switches back to whatever branch you were on last.  But if run after bisecting it gives an error:

% git switch mybranch
% git switch master
% git bisect start
% git bisect bad
% git bisect good HEAD~10
% git bisect bad [several times]
% git bisect reset
[goes back to master branch]
% git switch -

I expected it to switch back from master to mybranch but instead it gives an error
fatal: a branch is expected, got commit 'abc...'

I suggest the internal switching done by 'git bisect' should not affect the history saved for 'git switch -'.  Or 'git bisect reset' could also reset the history.

If that's not possible, then at least the error message could be improved.

--
Ed Avis <ed.avis@qmaw.com>
Please ignore confidentiality stuff after this point.

This email and any files transmitted with it are CONFIDENTIAL and are intended solely for the use of the individual(s) or entity to whom they are addressed. Any unauthorised copying, disclosure or distribution of the material within this email is strictly forbidden. Any views or opinions presented within this email are solely those of the author and do not necessarily represent those of PGIM Limited, QMA Wadhwani LLP or their affiliates unless otherwise specifically stated. An electronic message is not binding on its sender. Any message referring to a binding agreement must be confirmed in writing and duly signed. If you have received this email in error, please notify the sender immediately and delete the original. Telephone, electronic and other communications and conversations with PGIM Limited, QMA Wadhwani LLP and/or their associated persons may be recorded and retained. PGIM Limited and QMA Wadhwani LLP are authorised and regulated by the Financial Conduct Authority. PGIM Limited (registered in England No. 3809039) has its registered office at Grand Buildings, 1-3 Strand, Trafalgar Square, London WC2N 5HR and QMA Wadhwani LLP (registered in England No. OC303168) has its registered office at 9th Floor, Orion House, 5 Upper St. Martin's Lane, London, England, WC2H 9EA.

Please note that your personal information may be stored and processed in any country where we have facilities or in which we engage service providers. If you provide personal information to us by email or otherwise, you consent to the transfer of that information to countries outside of your country of residence and these countries may have different data protection rules than your country.

To learn about our privacy policies, please use this link<https://www.pgim.com/disclaimer/privacy-center> to read the Privacy Notices.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-04  8:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-04  8:27 git switch after bisect finished Ed Avis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).