From 5349853db4e83d52b3706ea4f9fb3407479ebb68 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Tue, 7 Nov 2006 07:19:24 +0000 Subject: [PATCH] Autogenerated man pages for v1.4.3.4-gbd45 --- man1/git-pack-refs.1 | 36 +++++++++++++++++++++++++++ man1/git-rebase.1 | 59 ++++++++++++++++++++++++++++++++++++++------ man7/git.7 | 8 +++++- 3 files changed, 94 insertions(+), 9 deletions(-) create mode 100755 man1/git-pack-refs.1 diff --git a/man1/git-pack-refs.1 b/man1/git-pack-refs.1 new file mode 100755 index 000000000..c62122ff2 --- /dev/null +++ b/man1/git-pack-refs.1 @@ -0,0 +1,36 @@ +.\" ** You probably do not want to edit this file directly ** +.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1). +.\" Instead of manually editing it, you probably should edit the DocBook XML +.\" source for it and then use the DocBook XSL Stylesheets to regenerate it. +.TH "GIT\-PACK\-REFS" "1" "11/07/2006" "" "" +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.SH "NAME" +git\-pack\-refs \- Pack heads and tags for efficient repository access +.SH "SYNOPSIS" +\fIgit\-pack\-refs\fR [\-\-all] [\-\-prune] +.sp +.SH "DESCRIPTION" +Traditionally, tips of branches and tags (collectively known as \fIrefs\fR) were stored one file per ref under $GIT_DIR/refs directory. While many branch tips tend to be updated often, most tags and some branch tips are never updated. When a repository has hundreds or thousands of tags, this one\-file\-per\-ref format both wastes storage and hurts performance. +.sp +This command is used to solve the storage and performance problem by stashing the refs in a single file, $GIT_DIR/packed\-refs. When a ref is missing from the traditional $GIT_DIR/refs hierarchy, it is looked up in this file and used if found. +.sp +Subsequent updates to branches always creates new file under $GIT_DIR/refs hierarchy. +.sp +.SH "OPTIONS" +.TP +\-\-all +The command by default packs all tags and leaves branch tips alone. This is because branches are expected to be actively developed and packing their tips does not help performance. This option causes branch tips to be packed as well. Useful for a repository with many branches of historical interests. +.TP +\-\-prune +After packing the refs, remove loose refs under +$GIT_DIR/refs +hierarchy. This should probably become default. +.SH "AUTHOR" +Written by Linus Torvalds +.sp +.SH "GIT" +Part of the \fBgit\fR(7) suite +.sp diff --git a/man1/git-rebase.1 b/man1/git-rebase.1 index 6f61dc4c5..eaacdf077 100755 --- a/man1/git-rebase.1 +++ b/man1/git-rebase.1 @@ -2,7 +2,7 @@ .\" It was generated using the DocBook XSL Stylesheets (version 1.69.1). .\" Instead of manually editing it, you probably should edit the DocBook XML .\" source for it and then use the DocBook XSL Stylesheets to regenerate it. -.TH "GIT\-REBASE" "1" "10/19/2006" "" "" +.TH "GIT\-REBASE" "1" "11/07/2006" "" "" .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) @@ -44,21 +44,64 @@ would be: / D\-\-\-E\-\-\-F\-\-\-G master .fi -While, starting from the same point, the result of either of the following commands: +The latter form is just a short\-hand of git checkout topic followed by git rebase master. +.sp +Here is how you would transplant a topic branch based on one branch to another, to pretend that you forked the topic branch from the latter branch, using rebase \-\-onto. +.sp +First let's assume your \fItopic\fR is based on branch \fInext\fR. For example feature developed in \fItopic\fR depends on some functionality which is found in \fInext\fR. .sp .sp .nf -git\-rebase \-\-onto master~1 master -git\-rebase \-\-onto master~1 master topic + o\-\-\-o\-\-\-o\-\-\-o\-\-\-o master + \\ + o\-\-\-o\-\-\-o\-\-\-o\-\-\-o next + \\ + o\-\-\-o\-\-\-o topic .fi -would be: +We would want to make \fItopic\fR forked from branch \fImaster\fR, for example because the functionality \fItopic\fR branch depend on got merged into more stable \fImaster\fR branch, like this: .sp .sp .nf - A'\-\-B'\-\-C' topic - / - D\-\-\-E\-\-\-F\-\-\-G master + o\-\-\-o\-\-\-o\-\-\-o\-\-\-o master + | \\ + | o'\-\-o'\-\-o' topic + \\ + o\-\-\-o\-\-\-o\-\-\-o\-\-\-o next +.fi +We can get this using the following command: +.sp +.sp +.nf +git\-rebase \-\-onto master next topic +.fi +Another example of \-\-onto option is to rebase part of a branch. If we have the following situation: +.sp +.sp +.nf + H\-\-\-I\-\-\-J topicB + / + E\-\-\-F\-\-\-G topicA + / + A\-\-\-B\-\-\-C\-\-\-D master +.fi +then the command +.sp +.sp +.nf +git\-rebase \-\-onto master topicA topicB .fi +would result in: +.sp +.sp +.nf + H'\-\-I'\-\-J' topicB + / + | E\-\-\-F\-\-\-G topicA + |/ + A\-\-\-B\-\-\-C\-\-\-D master +.fi +This is useful when topicB does not depend on topicA. +.sp In case of conflict, git\-rebase will stop at the first problematic commit and leave conflict markers in the tree. You can use git diff to locate the markers (<<<<<<) and make edits to resolve the conflict. For each file you edit, you need to tell git that the conflict has been resolved, typically this would be done with .sp .sp diff --git a/man7/git.7 b/man7/git.7 index 5c21d138f..c3e61b61c 100755 --- a/man7/git.7 +++ b/man7/git.7 @@ -2,7 +2,7 @@ .\" It was generated using the DocBook XSL Stylesheets (version 1.69.1). .\" Instead of manually editing it, you probably should edit the DocBook XML .\" source for it and then use the DocBook XSL Stylesheets to regenerate it. -.TH "GIT" "7" "10/29/2006" "" "" +.TH "GIT" "7" "11/07/2006" "" "" .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) @@ -126,6 +126,9 @@ Grand unified merge driver. \fBgit\-mv\fR(1) Move or rename a file, a directory, or a symlink. .TP +\fBgit\-pack\-refs\fR(1) +Pack heads and tags for efficient repository access. +.TP \fBgit\-pull\fR(1) Fetch from and merge with a remote repository or a local branch. .TP @@ -392,6 +395,9 @@ Lists commit objects in reverse chronological order. \fBgit\-show\-index\fR(1) Displays contents of a pack idx file. .TP +\fBgit\-show\-ref\fR(1) +List references in a local repository. +.TP \fBgit\-tar\-tree\fR(1) Creates a tar archive of the files in the named tree object. .TP -- 2.26.2