Re: Git hangs while executing commit-tree

2005-04-20 Thread David Greaves
Linus Torvalds wrote:
On Wed, 20 Apr 2005, Rhys Hardwick wrote:
[EMAIL PROTECTED]:~/repo/tmp.repo$ commit-tree  
c80156fafbac377ab35beb076090c8320f874f91
Committing initial tree c80156fafbac377ab35beb076090c8320f874f91
At this point, the command seems to be just waiting.

That's _exactly_ what it's doing. It's waiting for you to write a commit 
message.

Something like
This is my initial commit of Hello World!
^D
will make it happy.
Alternatively, you can certainly just write your message beforehand with 
an editor and just pipe it into commit-tree.

			Linus
When someone commits the docs I'll submit the next patch for the README:
commit-tree
commit-tree  [-p ...] < changelog
Creates a new commit object based on the provided tree object and
emits the new commit object id on stdout. If no parent is given then
it is considered to be an initial tree.
A commit comment is read from stdin (max 999 chars)
A commit object usually has 1 parent (a commit after a change) or 2
parents (a merge) although there is no reason it cannot have more than
2 parents.
While a tree represents a particular directory state of a working
directory, a commit represents that state in "time", and explains how
to get there.
Normally a commit would identify a new "HEAD" state, and while git
doesn't care where you save the note about that state, in practice we
tend to just write the result to the file ".git/HEAD", so that we can
always see what the last committed state was.
Options

An existing tree object
-p 
Each -p indicates a the id of a parent commit object.

Commit Information
A commit encapsulates:
all parent object ids
author name, email and date
committer name and email and the commit time.
If not provided, commit-tree uses your name, hostname and domain to
provide author and committer info. This can be overridden using the
following environment variables.
AUTHOR_NAME
AUTHOR_EMAIL
AUTHOR_DATE
COMMIT_AUTHOR_NAME
COMMIT_AUTHOR_EMAIL
(nb <,> and CRs are stripped)
see also: write-tree
David
--
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Git hangs while executing commit-tree

2005-04-20 Thread Linus Torvalds


On Wed, 20 Apr 2005, Rhys Hardwick wrote:
>
> [EMAIL PROTECTED]:~/repo/tmp.repo$ commit-tree  
> c80156fafbac377ab35beb076090c8320f874f91
> Committing initial tree c80156fafbac377ab35beb076090c8320f874f91
>  
> At this point, the command seems to be just waiting.

That's _exactly_ what it's doing. It's waiting for you to write a commit 
message.

Something like

This is my initial commit of Hello World!
^D

will make it happy.

Alternatively, you can certainly just write your message beforehand with 
an editor and just pipe it into commit-tree.

Linus
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Git hangs while executing commit-tree

2005-04-20 Thread Rhys Hardwick
Cheers for the help!

Rhys

On Wednesday 20 Apr 2005 22:35, Petr Baudis wrote:
> Dear diary, on Wed, Apr 20, 2005 at 11:28:35PM CEST, I got a letter
> where Rhys Hardwick <[EMAIL PROTECTED]> told me that...
>
> > Hey,
>
> Hi,
>
> > [EMAIL PROTECTED]:~/repo/tmp.repo$ commit-tree
> > c80156fafbac377ab35beb076090c8320f874f91
> > Committing initial tree c80156fafbac377ab35beb076090c8320f874f91
> >
> >
> >
> > At this point, the command seems to be just waiting.  I have had it
> > waiting for around 2 hours now!  I have tried removing ~/repo/tmp.repo
> > and starting over, with exactly the same results.
>
> just type in your commit message and press ctrl-D now. ;-)
>
> If you can't get along by peeking at the source when you get stuck, etc,
> you might prefer using git-pasky (http://pasky.or.cz/~pasky/dev/git/),
> which will guide you nicely.


-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Git hangs while executing commit-tree

2005-04-20 Thread Petr Baudis
Dear diary, on Wed, Apr 20, 2005 at 11:28:35PM CEST, I got a letter
where Rhys Hardwick <[EMAIL PROTECTED]> told me that...
> Hey,

Hi,

> [EMAIL PROTECTED]:~/repo/tmp.repo$ commit-tree 
> c80156fafbac377ab35beb076090c8320f874f91
> Committing initial tree c80156fafbac377ab35beb076090c8320f874f91
>  
> 
> 
> At this point, the command seems to be just waiting.  I have had it waiting 
> for around 2 hours now!  I have tried removing ~/repo/tmp.repo and starting 
> over, with exactly the same results.

just type in your commit message and press ctrl-D now. ;-)

If you can't get along by peeking at the source when you get stuck, etc,
you might prefer using git-pasky (http://pasky.or.cz/~pasky/dev/git/),
which will guide you nicely.

-- 
Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html