Re: [git-users] how to get the commit id from one file or multi file

2012-06-14 Thread Konstantin Khomoutov
On Thu, 14 Jun 2012 23:53:30 +0800
lei yang  wrote:

> >> Can we get the commit id list for one file or multifile?
> >>
> >> Lei
> >>
> > What do you mean by commit id?
> >
> 
> I mean the file in git tree has lots of commit, I want to get the
> commit list for this file

$ git rev-list --all -- 

or

$ git log --format=%H -- 

Note that Git does not explicitly record file renames (contrary to
certain systems like Subversion, which do), and to compensate for this
when using `git log`, Git has to be told to use special heuristics.
So if you need this, you should probably study the "--find-renames"
command-line option to `git log`, and, possibly, "--find-copies"
and/or "--find-copies-harder" as well.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] how to get the commit id from one file or multi file

2012-06-14 Thread Thomas Ferris Nicolaisen
How about git log file?

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/8dbncT-5fYYJ.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] how to get the commit id from one file or multi file

2012-06-14 Thread lei yang
On Thu, Jun 14, 2012 at 11:46 PM, Bryce Verdier  wrote:
> On 06/14/2012 08:33 AM, lei yang wrote:
>>
>> Hi List,
>>
>> Can we get the commit id list for one file or multifile?
>>
>> Lei
>>
> What do you mean by commit id?
>

I mean the file in git tree has lots of commit, I want to get the
commit list for this file

Lei



> In trying to save time I'm going to take a guess and then try to answer
> based on that assumption. There is a command called git-blame. You can use
> that to see which person made a change to a particular file.
>
> Hope that helps.
>
> Bryce
>
> --
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To post to this group, send email to git-users@googlegroups.com.
> To unsubscribe from this group, send email to
> git-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/git-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] how to get the commit id from one file or multi file

2012-06-14 Thread Bryce Verdier

On 06/14/2012 08:33 AM, lei yang wrote:

Hi List,

Can we get the commit id list for one file or multifile?

Lei


What do you mean by commit id?

In trying to save time I'm going to take a guess and then try to answer 
based on that assumption. There is a command called git-blame. You can 
use that to see which person made a change to a particular file.


Hope that helps.

Bryce

--
You received this message because you are subscribed to the Google Groups "Git for 
human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.