Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-8417

Git: Stash-based branch checkout

XMLWordPrintable

    • 81bf2ec154f8a98269040b1e185d9b59d2c6f3e9

      This suggestion is to make git branch handle stash-based.

      One of the things that is bugging me a lot with git is the fact that I need to commit my local changes (or stash or remove them) when I want to switch branch. Since this is not auto, maybe we can automate it.

      IMO this should work this way:

      There should be a checkbox in tools-options-VC-git: "stash-based checkout". If it is checked:

      When you are in one branch, and want to switch on another branch, but there are local changes, QT Creator should recognize this, and:

      1 - automatically (without asking you) create stash for your local changes, and give it a special name that should contain branch name and a timestamp (name different from the one used before).

      2 - after that it should do checkout.

      3 - finally, for a newly checked-out branch, it should check if you have any stashes made in step 1 (made some time ago, when you were switching from it to another branch) - if there are, do a stash pop for a stash with newest timestamp.

      Regards,
      Petar

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            hunger Tobias Hunger
            pperisin Petar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes