git branch help?

Thomas Janssen thomasj at fedoraproject.org
Tue Aug 3 18:27:20 UTC 2010


On Tue, Aug 3, 2010 at 3:51 PM, Todd Zullinger <tmz at pobox.com> wrote:
> Karel Zak wrote:
>> On Tue, Aug 03, 2010 at 12:56:37PM +0530, Rahul Sundaram wrote:
>>>  On 08/03/2010 12:53 PM, Peter Hutterer wrote:
>>>> correct, git will share objects between branches, so by storing in different
>>>> directories you'll loose that advantage.
>>>>
>>>> I've got a shell prompt that shows me the branch name whenever I enter a git
>>>> directory so I don't have to worry about committing to the wrong branch.
>>>
>>> For those wondering how,
>>>
>>> http://blog.vagmim.com/2009/04/git-branch-on-command-prompt.html
>>
>> This is pretty primitive implementation (do you really want to call
>> python from $PS1? ;-)
>
> This looks like a new version of the wheel many ruby folks re-invented
> when they started moving to git.  Sadly, these poor substitutes for
> __git_ps1() are often pushed.
>
> The wiki has some info on configuring __git_ps1() here:
>
> https://fedoraproject.org/wiki/Git_Quickref#Display_current_branch_in_bash

Thanks a lot. It works perfectly.

-- 
LG Thomas

Dubium sapientiae initium


More information about the devel mailing list