2005-05-10 23:32:30 +02:00
|
|
|
git-commit-tree(1)
|
|
|
|
==================
|
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
|
|
|
git-commit-tree - Creates a new commit object
|
|
|
|
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
2005-11-15 00:20:01 +01:00
|
|
|
'git-commit-tree' <tree> [-p <parent commit>]\* < changelog
|
2005-05-10 23:32:30 +02:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
2007-01-17 22:03:29 +01:00
|
|
|
This is usually not what an end user wants to run directly. See
|
|
|
|
gitlink:git-commit[1] instead.
|
|
|
|
|
2005-05-10 23:32:30 +02:00
|
|
|
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 object usually has 1 parent (a commit after a change) or up
|
|
|
|
to 16 parents. More than one parent represents a merge of branches
|
|
|
|
that led to them.
|
|
|
|
|
|
|
|
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
|
2005-11-17 06:32:44 +01:00
|
|
|
tend to just write the result to the file that is pointed at by
|
|
|
|
`.git/HEAD`, so that we can always see what the last committed
|
|
|
|
state was.
|
2005-05-10 23:32:30 +02:00
|
|
|
|
|
|
|
OPTIONS
|
|
|
|
-------
|
|
|
|
<tree>::
|
|
|
|
An existing tree object
|
|
|
|
|
|
|
|
-p <parent commit>::
|
2005-10-06 00:08:26 +02:00
|
|
|
Each '-p' indicates the id of a parent commit object.
|
2005-05-10 23:32:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
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, "git-commit-tree" uses your name, hostname and domain to
|
2005-10-29 23:32:56 +02:00
|
|
|
provide author and committer info. This can be overridden by
|
|
|
|
either `.git/config` file, or using the following environment variables.
|
2005-05-10 23:32:30 +02:00
|
|
|
|
|
|
|
GIT_AUTHOR_NAME
|
|
|
|
GIT_AUTHOR_EMAIL
|
|
|
|
GIT_AUTHOR_DATE
|
|
|
|
GIT_COMMITTER_NAME
|
|
|
|
GIT_COMMITTER_EMAIL
|
|
|
|
|
2005-10-03 19:16:30 +02:00
|
|
|
(nb "<", ">" and "\n"s are stripped)
|
2005-05-10 23:32:30 +02:00
|
|
|
|
2006-01-05 12:44:18 +01:00
|
|
|
In `.git/config` file, the following items are used for GIT_AUTHOR_NAME and
|
|
|
|
GIT_AUTHOR_EMAIL:
|
2005-10-29 23:32:56 +02:00
|
|
|
|
|
|
|
[user]
|
|
|
|
name = "Your Name"
|
|
|
|
email = "your@email.address.xz"
|
|
|
|
|
2005-05-10 23:32:30 +02:00
|
|
|
A commit comment is read from stdin (max 999 chars). If a changelog
|
2005-10-03 19:16:30 +02:00
|
|
|
entry is not provided via "<" redirection, "git-commit-tree" will just wait
|
|
|
|
for one to be entered and terminated with ^D.
|
2005-05-10 23:32:30 +02:00
|
|
|
|
2005-10-29 23:32:56 +02:00
|
|
|
|
2005-05-10 23:32:38 +02:00
|
|
|
Diagnostics
|
|
|
|
-----------
|
|
|
|
You don't exist. Go away!::
|
|
|
|
The passwd(5) gecos field couldn't be read
|
2005-07-15 02:57:53 +02:00
|
|
|
Your parents must have hated you!::
|
|
|
|
The password(5) gecos field is longer than a giant static buffer.
|
|
|
|
Your sysadmin must hate you!::
|
|
|
|
The password(5) name field is longer than a giant static buffer.
|
2005-05-10 23:32:38 +02:00
|
|
|
|
2006-12-30 11:22:38 +01:00
|
|
|
Discussion
|
|
|
|
----------
|
|
|
|
|
|
|
|
include::i18n.txt[]
|
|
|
|
|
2005-05-10 23:32:38 +02:00
|
|
|
See Also
|
|
|
|
--------
|
2005-09-19 12:10:51 +02:00
|
|
|
gitlink:git-write-tree[1]
|
2005-05-10 23:32:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
Author
|
|
|
|
------
|
|
|
|
Written by Linus Torvalds <torvalds@osdl.org>
|
|
|
|
|
|
|
|
Documentation
|
|
|
|
--------------
|
|
|
|
Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
|
|
|
|
|
|
|
|
GIT
|
|
|
|
---
|
2005-09-19 12:10:51 +02:00
|
|
|
Part of the gitlink:git[7] suite
|
2005-05-10 23:32:30 +02:00
|
|
|
|