guberm / tortoisegit

Automatically exported from code.google.com/p/tortoisegit
0 stars 0 forks source link

don't enter branch directory when renaming a branch #2377

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. select a "top-level" branch (one without / in its name)
2. rename to a subdirectory

What is the expected output? What do you see instead?

I expect to stay in the same dir, and see the branch renamed (in the correct 
dir).

Instead, I am ported to the subdir. I always have to go back.

(and also, I cannot rename towards a higher level dir - ../ won't work although 
logically it might ... )

(and also, it is difficult to distinguish branches from subdirectories)

What version of TortoiseGit and msysgit are you using? On
what operating system?

tgit 1.8.12
ms 1.9.4
Windows 7

Please provide any additional information below.

Original issue reported on code.google.com by alexande...@gmail.com on 15 Dec 2014 at 12:44

GoogleCodeExporter commented 9 years ago
Please provide some concrete steps to reproduce.

Original comment by sstrickr...@googlemail.com on 3 Jan 2015 at 3:36

GoogleCodeExporter commented 9 years ago
1. open Reference Browser and select refs/heads
2. create a top-level branch 'A' (right-click, "Create Branch...")
3. create a second branch with some levels: 'B/C/D' (right-click...)
4. Observe that the ref browser is still in the same directory and lists two 
branches ('A' and 'B/C/D')
5. rename 'A to 'B/C/A' (F2). (This "moves" the branch to the B/C directory.)

Annoyance: observe that the ref browser also enters the B/C subdirectory and 
now lists A and D

Fix: one would instead expect to remain in the top level (where A was created) 
and see branch B/C/A

Original comment by alexande...@gmail.com on 3 Jan 2015 at 4:14