guberm / tortoisegit

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

add ability to create an orphan/root branch #1090

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
github requires you to create what they call a "root" branch called "gh-pages" 
for hosting a project there, in git it's "git checkout --orphan NEWBRANCH".

would be nice to have a GUI for this in the branching dialog.

thanks!

Original issue reported on code.google.com by leeon...@gmail.com on 29 Feb 2012 at 5:54

GoogleCodeExporter commented 9 years ago
Do you have a suggestion on how to provide support in the GUI for it?

Where to put it? - Create branch dialog, or checkout? - How to name it? Where 
would people expect it?

Original comment by sstrickr...@googlemail.com on 29 Apr 2012 at 1:46

GoogleCodeExporter commented 9 years ago

Original comment by sstrickr...@googlemail.com on 29 Apr 2012 at 1:46

GoogleCodeExporter commented 9 years ago
putting it in checkout makes no sense since the main purpose of branching via 
checkout is to pre-define the "base on" commit. since orphan branches are not 
based on anything, i would say it belongs only in the create branch dialog, 
that's where i would expect it at least.

to keep things uniform, i'd think adding another radio button to the right of 
HEAD (master). maybe called "Nothing (orphan)", "Root (orphan)"

alternatively you can use the empty space to the right of the branch name field 
with a checkbox "orphan branch" or "root branch" which disables the "Base On" 
section when active.

Original comment by leeon...@gmail.com on 30 Apr 2012 at 5:45

GoogleCodeExporter commented 9 years ago
Creating an orphaned branch isn't that easy. It's only working on checkout and 
you have to make a commit afterwards.

Original comment by sstrickr...@googlemail.com on 7 Aug 2012 at 2:59

GoogleCodeExporter commented 9 years ago
I think having the option in the branch dialog makes the most sense, despite it 
being a checkout command. Perform the checkout --orphan followed by an rm -rf, 
and leave the commit up to the user (maybe they'll decide they don't want an 
orphan branch). Not really any different than what's expected on an empty repo, 
no?

Original comment by spartan...@gmail.com on 12 Dec 2012 at 12:36

GoogleCodeExporter commented 9 years ago
So... I guess this never got implemented?

Perhaps the easiest solution is to put it in the checkout dialog, perhaps by 
either adding a new radio button saying "Empty branch (orphan)", or adding that 
to the branch drop-down.

That possible?

Original comment by simone...@gmail.com on 29 Jan 2014 at 3:19

GoogleCodeExporter commented 9 years ago
When is this feature becoming available?!

Original comment by djsuess@gmail.com on 4 Mar 2015 at 11:43

GoogleCodeExporter commented 9 years ago
How about putting it in the commit dialog, next to the new branch checkbox?

This way TortoiseGit can checkout and commit in one action.

Original comment by your.sheepy@gmail.com on 8 May 2015 at 5:00