[dmd-internals] [D-Programming-Language/dmd] 852708: more 2 register parameter support

Leandro Lucarella luca at llucax.com.ar
Wed Jun 6 11:17:03 PDT 2012


Jacob Carlborg, el  2 de junio a las 15:14 me escribiste:
> 
> On 2 jun 2012, at 14:26, Jason House wrote:
> 
> > It still puzzles me how reason #3 is so common. How is it that changes get missed? Do you run "git status" when preparing commits and when preparing to push your changes? I'm wondering if there are simple things like customizing .gitignore or adding colors to the status output that could make #3 less common.
> 
> 
> I commit most of the times with
> 
> $ git commit -a
> 
> Which will add all changes to all files which git is already tracking. It won't add new files. I also have color enabled for diffs and status.
> 
> This is how my .gitconfig looks like:
> 
> http://pastebin.com/gcKmrwCi

A very handy trick if you use bash (probably works with other shells
too) and have auto completion enabled is to use __git_ps1 in your $PS1
configuration. For example using GIT_PS1_SHOWUNTRACKEDFILES=1, a '%'
symbol is shown in the prompt if there are untracked files.

For example, I'm using this (colorful) prompt:
# make git prompt more verbose
export GIT_PS1_SHOWDIRTYSTATE=1 GIT_PS1_SHOWSTASHSTATE=1 \
        GIT_PS1_SHOWUNTRACKEDFILES=1 GIT_PS1_SHOWUPSTREAM=auto,verbose
PS1='\[\033[00;34m\]\u\[\033[00m\]\[\033[00;33m\]@\[\033[00m\]\[\033[00;36m\]\h\[\033[00m\]\[\033[00;33m\]:\[\033[00;32m\]\w$(__git_ps1
"\[\033[00m\]\[\033[00;33m\]:\[\033[00m\]\[\033[00;36m\]%s")\[\033[00m\]\[\033[00;33m\]\$\[\033[00m\]

For me is a life-changing feature...

More info in the bash completion file itself:
https://github.com/git/git/blob/master/contrib/completion/git-completion.bash

-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
Si pensas que el alma no se ve
El alma sí se ve y puede combinar muy bien


More information about the dmd-internals mailing list