Skip to content

Commit

Permalink
Merge branch 'master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Junio C Hamano committed Nov 8, 2005
2 parents 7141b3b + 390cb0c commit 77131db
Show file tree
Hide file tree
Showing 14 changed files with 364 additions and 24 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ git-commit
git-commit-tree
git-convert-objects
git-count-objects
git-cvsexportcommit
git-cvsimport
git-daemon
git-diff
Expand All @@ -36,6 +37,7 @@ git-get-tar-commit-id
git-grep
git-hash-object
git-http-fetch
git-http-push
git-index-pack
git-init-db
git-local-fetch
Expand Down Expand Up @@ -107,6 +109,8 @@ git-verify-tag
git-whatchanged
git-write-tree
git-core-*/?*
test-date
test-delta
*.tar.gz
*.dsc
*.deb
Expand Down
1 change: 1 addition & 0 deletions Documentation/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
*.1
*.7
howto-index.txt
doc.dep
16 changes: 7 additions & 9 deletions Documentation/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,19 @@ install: man
#
# Determine "include::" file references in asciidoc files.
#
TEXTFILES = $(wildcard *.txt)
DEPFILES = $(TEXTFILES:%.txt=%.dep)

%.dep : %.txt
@rm -f $@
@$(foreach dep, $(shell grep include:: $< | sed -e 's/include::/ /' -e 's/\[\]//'), \
echo $(<:%.txt=%.html) $(<:%.txt=%.1) : $(dep) >> $@; )
TEXTFILES = $(wildcard git-*.txt)
doc.dep : $(TEXTFILES) build-docdep.perl
rm -f $@+ $@
perl ./build-docdep.perl >$@+
mv $@+ $@

-include $(DEPFILES)
-include doc.dep

git.7: ../README


clean:
rm -f *.xml *.html *.1 *.7 howto-index.txt howto/*.html *.dep
rm -f *.xml *.html *.1 *.7 howto-index.txt howto/*.html doc.dep

%.html : %.txt
asciidoc -b xhtml11 -d manpage -f asciidoc.conf $<
Expand Down
28 changes: 28 additions & 0 deletions Documentation/build-docdep.perl
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/usr/bin/perl

my %include = ();

for my $text (<git-*.txt>) {
open I, '<', $text || die "cannot read: $text";
(my $base = $text) =~ s/\.txt$//;
while (<I>) {
if (/^include::/) {
chomp;
s/^include::\s*//;
s/\[\]//;
$include{$base}{$_} = 1;
}
}
close I;
}

# Do we care about chained includes???

while (my ($base, $included) = each %include) {
my ($suffix) = '1';
if ($base eq 'git') {
$suffix = '7'; # yuck...
}
print "$base.html $base.$suffix : ", join(" ", keys %$included), "\n";
}

56 changes: 56 additions & 0 deletions Documentation/git-cvsexportcommit.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
git-cvsexportcommit(1)
======================

NAME
----
git-cvsexportcommit - Export a commit to a CVS checkout


SYNOPSIS
--------
git-cvsapplycommmit.perl
[ -h ] [ -v ] [ -c ] [ -p ] [PARENTCOMMIT] COMMITID


DESCRIPTION
-----------
Exports a commit from GIT to a CVS checkout, making it easier
to merge patches from a git repository into a CVS repository.

Execute it from the root of the CVS working copy. GIT_DIR must be defined.

It does its best to do the safe thing, it will check that the files are
unchanged and up to date in the CVS checkout, and it will not autocommit
by default.

Supports file additions, removals, and commits that affect binary files.

If the commit is a merge commit, you must tell git-cvsapplycommit what parent
should the changeset be done against.

OPTIONS
-------

-c::
Commit automatically if the patch applied cleanly. It will not
commit if any hunks fail to apply or there were other problems.

-p::
Be pedantic (paranoid) when applying patches. Invokes patch with
--fuzz=0

-v::
Verbose.

Author
------
Written by Martin Langhoff <martin@catalyst.net.nz>

Documentation
--------------
Documentation by Martin Langhoff <martin@catalyst.net.nz>

GIT
---
Part of the gitlink:git[7] suite

2 changes: 1 addition & 1 deletion Documentation/howto/rebase-and-edit.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ And then, you can just remove the broken branch if you decide you really
don't want it:

# remove 'broken' branch
rm .git/refs/heads/broken
git branch -d broken

# Prune old objects if you're really really sure
git prune
Expand Down
3 changes: 2 additions & 1 deletion Documentation/howto/revert-branch-rebase.txt
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ Everything is in the good order. I do not need the temporary branch
nor tag anymore, so remove them:

------------------------------------------------
$ rm -f .git/refs/tags/pu-anchor .git/refs/heads/revert-c99
$ rm -f .git/refs/tags/pu-anchor
$ git branch -d revert-c99
------------------------------------------------

It was an emergency fix, so we might as well merge it into the
Expand Down
2 changes: 1 addition & 1 deletion Documentation/howto/using-topic-branches.txt
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ output from:

is empty. At this point the branch can be deleted:

$ rm .git/refs/heads/branchname
$ git branch -d branchname

Some changes are so trivial that it is not necessary to create a separate
branch and then merge into each of the test and release branches. For
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ SCRIPT_SH = \
SCRIPT_PERL = \
git-archimport.perl git-cvsimport.perl git-relink.perl \
git-rename.perl git-shortlog.perl git-fmt-merge-msg.perl \
git-svnimport.perl git-mv.perl
git-svnimport.perl git-mv.perl git-cvsexportcommit.perl

SCRIPT_PYTHON = \
git-merge-recursive.py
Expand Down
Loading

0 comments on commit 77131db

Please sign in to comment.