[libvirt] [PATCH] build: Use $(PYTHON) instead of python for the keycode map generator

Eric Blake eblake at redhat.com
Fri Jul 22 14:53:41 UTC 2011


On 07/22/2011 08:17 AM, Daniel Veillard wrote:
>> chmod +x src/util/virkeycode-mapgen.py
>>
>> to match our style of .py files being executable (even if we run
>> them via $(PYTHON)).
>
>    just wondering loud, if you change a file attribute like this will
> git automatically detect it and all to "commit" the change or is there
> some magic involved (yes I'm think thinking too much in terms of CVS !)

Forget all the pain you ever had with CVS execute permissions :)  Git 
makes it trivial - the x bit is tracked alongside every file, and you 
can even do a 0-line diff that changes only the file mode (remember, in 
git, every directory tree is an object, and directories record state 
information - so when you change +x bit, what you are really doing is 
recording a new tree object).

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org




More information about the libvir-list mailing list