[git-users] How to find out (fast) if a commit is on a _specific_ branch

2014-05-29 Thread Paul Smith
I need to write a hook that will allow merge commits ONLY if the merge is coming from a specific branch. I know about git branch --contains but that checks ALL the branches to see if the commit is on any them, and with the number of branches we have that takes a non-trivial amount of time. Since

[git-users] Re: website deployment through git

2014-05-29 Thread bastilani
Il giorno domenica 25 maggio 2014 16:05:56 UTC+2, bast...@gmail.com ha scritto: Hi, I'm starting to use git. I need it to manage a website. Up to now, on my server (linux, debian based) I configured a bare repository (/opt/git/project.git/). I added a post-update hook, in order to

[git-users] diff most recent commit

2014-05-29 Thread dexter ietf
hi, how to see the diff of a file with it's most recent commit. also show to take the diff of file:lineno with its most recent commit on the line. note that the recent commit for a file and file:lineno might be different. -thanks -- You received this message because you are subscribed to the

Re: [git-users] diff most recent commit

2014-05-29 Thread Charles Manning
git log -p filename On Fri, May 30, 2014 at 4:54 PM, dexter ietf dexter.i...@gmail.com wrote: hi, how to see the diff of a file with it's most recent commit. also show to take the diff of file:lineno with its most recent commit on the line. note that the recent commit for a file and

Re: [git-users] diff most recent commit

2014-05-29 Thread dexter ietf
On Friday, May 30, 2014 10:49:29 AM UTC+5:30, charlesmanning wrote: git log -p filename git log lists all the commits, how about if just want to see most recent commit or most recent 2 commits on a file and per line basis. can we achieve the same with 'git diff', because this will help me