Re: git branch help?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 3, 2010 at 3:51 PM, Todd Zullinger <tmz@xxxxxxxxx> 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
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux