~ubuntu-branches/ubuntu/intrepid/git-core/intrepid-security

« back to all changes in this revision

Viewing changes to Documentation/git-rev-parse.txt

  • Committer: Package Import Robot
  • Author(s): Gerrit Pape
  • Date: 2007-10-04 08:27:01 UTC
  • mfrom: (1.1.23)
  • Revision ID: package-import@ubuntu.com-20071004082701-rsd058ontoqz4i30
Tags: 1:1.5.3.4-1
new upstream point release (closes: #445188).

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
--git-dir::
90
90
        Show `$GIT_DIR` if defined else show the path to the .git directory.
91
91
 
 
92
--is-inside-git-dir::
 
93
        When the current working directory is below the repository
 
94
        directory print "true", otherwise "false".
 
95
 
 
96
--is-inside-work-tree::
 
97
        When the current working directory is inside the work tree of the
 
98
        repository print "true", otherwise "false".
 
99
 
 
100
--is-bare-repository::
 
101
        When the repository is bare print "true", otherwise "false".
 
102
 
92
103
--short, --short=number::
93
104
        Instead of outputting the full SHA1 values of object names try to
94
105
        abbreviate them to a shorter unique name. When no length is specified
204
215
* A colon, optionally followed by a stage number (0 to 3) and a
205
216
  colon, followed by a path; this names a blob object in the
206
217
  index at the given path.  Missing stage number (and the colon
207
 
  that follows it) names an stage 0 entry.
 
218
  that follows it) names an stage 0 entry. During a merge, stage
 
219
  1 is the common ancestor, stage 2 is the target branch's version
 
220
  (typically the current branch), and stage 3 is the version from
 
221
  the branch being merged.
208
222
 
209
223
Here is an illustration, by Jon Loeliger.  Both node B and C are
210
224
a commit parents of commit node A.  Parent commits are ordered
213
227
    G   H   I   J
214
228
     \ /     \ /
215
229
      D   E   F
216
 
       \  |  / \
 
230
       \  |  / \ 
217
231
        \ | /   |
218
232
         \|/    |
219
233
          B     C
286
300
GIT
287
301
---
288
302
Part of the gitlink:git[7] suite
289