Re: [git-users] Read GIT directory manualy

2013-08-27 Thread Konstantin Khomoutov
On Tue, 27 Aug 2013 10:44:28 -0400
wor...@alum.mit.edu (Dale R. Worley) wrote:

> > But I am wondering if I can read some file or files to get same
> > list ?
> 
> Of course, the information that git-show provides for you it extracts
> from some file or files, so in a sense, the answer is "yes".  But I
> suspect you are asking "Is there a file which directly lists this
> information?" and the answer to that is "No".  Almost everything you'd
> want to know about a git repository is heavily encoded and compressed,
> and you must use Git executables (or Git library routines) to extract
> it.

One should note, however, that there's currently no official Git
library, so there's no "Git library routines".
Someone else earlier on this thread pointed out the existense of the
libgit2 project which is a mature ะก library for manipulating Git
repositories, but no part of Git is currently uses it, and it's a
separate project.  Various other access libraries exist but have the
same status with regard to Git itself.

So, practically speaking, calling Git's own plumbing commands *is* the
official way to manipulate Git repositories.  Yes, it might be
inconvenient or might cause performance problems, but it's still the
first thing to consider when pondering ways to access Git repos
programmatically.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [git-users] Read GIT directory manualy

2013-08-27 Thread Dale R. Worley
> From: Boris Trivic 
> 
> But I am wondering if I can read some file or files to get same list ?

Of course, the information that git-show provides for you it extracts
from some file or files, so in a sense, the answer is "yes".  But I
suspect you are asking "Is there a file which directly lists this
information?" and the answer to that is "No".  Almost everything you'd
want to know about a git repository is heavily encoded and compressed,
and you must use Git executables (or Git library routines) to extract
it.

Dale

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [git-users] Read GIT directory manualy

2013-08-26 Thread Gergely Polonkai
Although I haven't used it myself, your life would be easier with
libgit[1]. It implements most core features, so it might help you (or you
may be qble to pick some parts of it).

[1] http://libgit2.github.com
On 26 Aug 2013 23:22, "Boris Trivic"  wrote:

> Hi everyone.
>
> I am programmer and I am developing some application connected to GIT. The
> task is to get list of changed files in selected commit. I know how to read
> list of commits:
>
> .git/log/HEAD
>
> I also know how to get changed files from console:
>
> git show --name-only f1b6aea266bc7053786439bed16a6571f8805a51
>
>
> But I am wondering if I can read some file or files to get same list ?
>
>
> Thanks in advance.
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to git-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[git-users] Read GIT directory manualy

2013-08-26 Thread Boris Trivic
Hi everyone.

I am programmer and I am developing some application connected to GIT. The 
task is to get list of changed files in selected commit. I know how to read 
list of commits:

.git/log/HEAD

I also know how to get changed files from console:

git show --name-only f1b6aea266bc7053786439bed16a6571f8805a51


But I am wondering if I can read some file or files to get same list ?


Thanks in advance.


-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.