Skip to content

Commit

Permalink
Merge branch 'master' of .
Browse files Browse the repository at this point in the history
  • Loading branch information
Junio C Hamano committed Sep 18, 2005
2 parents 4803c28 + 85d106c commit 8ac93bc
Show file tree
Hide file tree
Showing 49 changed files with 640 additions and 781 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ git-applypatch
git-archimport
git-bisect
git-branch
git-build-rev-cache
git-cat-file
git-checkout
git-checkout-index
Expand Down Expand Up @@ -73,13 +72,15 @@ git-rev-list
git-rev-parse
git-rev-tree
git-revert
git-send-email
git-send-pack
git-sh-setup
git-shortlog
git-show-branch
git-show-index
git-show-rev-cache
git-ssh-fetch
git-ssh-pull
git-ssh-push
git-ssh-upload
git-status
git-stripspace
Expand Down
2 changes: 1 addition & 1 deletion Documentation/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ man1: $(DOC_MAN1)
man7: $(DOC_MAN7)

install:
$(INSTALL) -m755 -d $(DESTDIR)/$(man1) $(DESTDIR)/$(man7)
$(INSTALL) -d -m755 $(DESTDIR)/$(man1) $(DESTDIR)/$(man7)
$(INSTALL) $(DOC_MAN1) $(DESTDIR)/$(man1)
$(INSTALL) $(DOC_MAN7) $(DESTDIR)/$(man7)

Expand Down
38 changes: 0 additions & 38 deletions Documentation/git-build-rev-cache.txt

This file was deleted.

6 changes: 6 additions & 0 deletions Documentation/git-fetch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ OPTIONS
-------
include::pull-fetch-param.txt[]

-u, \--update-head-ok::
By default 'git-fetch' refuses to update the head which
corresponds to the current branch. This flag disables the
check. Note that fetching into the current branch will not
update the index and working directory, so use it with care.


Author
------
Expand Down
7 changes: 5 additions & 2 deletions Documentation/git-rev-list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ I have the commit object 'bar', but not 'foo'".

The *--bisect* flag limits output to the one commit object which is
roughly halfway between the included and excluded commits. Thus,
if "git-rev-list --bisect foo ^bar ^baz" outputs 'midpoint', the output
of "git-rev-list foo ^midpoint" and "git-rev-list midpoint ^bar ^baz"
if 'git-rev-list --bisect foo ^bar
^baz' outputs 'midpoint', the output
of 'git-rev-list foo ^midpoint' and 'git-rev-list midpoint
^bar
^baz'
would be of roughly the same length. Finding the change which introduces
a regression is thus reduced to a binary search: repeatedly generate and
test new 'midpoint's until the commit chain is of length one.
Expand Down
37 changes: 0 additions & 37 deletions Documentation/git-show-rev-cache.txt

This file was deleted.

2 changes: 0 additions & 2 deletions Documentation/git-update-server-info.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ of what they are for:

* info/refs

* info/rev-cache


BUGS
----
Expand Down
6 changes: 0 additions & 6 deletions Documentation/git.txt
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,6 @@ link:git-tag.html[git-tag]::

Interrogators:

link:git-build-rev-cache.html[git-build-rev-cache]::
Create or update a rev-cache file.

link:git-cherry.html[git-cherry]::
Find commits not merged upstream.

Expand Down Expand Up @@ -402,9 +399,6 @@ link:git-send-email.html[git-send-email]::
Send patch e-mails out of "format-patch --mbox" output.
Previously this command was known as git-send-email-script.

link:git-show-rev-cache.html[git-show-rev-cache]::
Show the contents of a rev-cache file.

link:git-stripspace.html[git-stripspace]::
Filter out empty lines.

Expand Down
11 changes: 11 additions & 0 deletions Documentation/pull-fetch-param.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,14 @@
<ref>: when pulling/fetching, and <ref>:<ref> when
pushing. That is, do not store it locally if
fetching, and update the same name if pushing.

-a, \--append::
Append ref names and object names of fetched refs to the
existing contents of $GIT_DIR/FETCH_HEAD. Without this
option old data in $GIT_DIR/FETCH_HEAD will be overwritten.

-f, \--force::
Usually, the command refuses to update a local ref that is
not an ancestor of the remote ref used to overwrite it.
This flag disables the check. What this means is that the
local repository can lose commits; use it with care.
7 changes: 0 additions & 7 deletions Documentation/repository-layout.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,6 @@ info/grafts::
listing their 40-byte hexadecimal object names separated
by a space and terminated by a newline.

info/rev-cache::
No higher-level tool currently takes advantage of this
file, but it is generated when `git update-server-info`
is run. It records the commit ancestry information of
the commits in this repository in a concise binary
format, and can be read with `git-show-rev-cache`.

info/exclude::
This file, by convention among Porcelains, stores the
exclude pattern list. `git status` looks at it, but
Expand Down
24 changes: 17 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ SIMPLE_PROGRAMS = \

# ... and all the rest
PROGRAMS = \
git-apply git-build-rev-cache git-cat-file \
git-apply git-cat-file \
git-checkout-index git-clone-pack git-commit-tree \
git-convert-objects git-diff-files \
git-diff-helper git-diff-index git-diff-stages \
Expand All @@ -103,12 +103,15 @@ PROGRAMS = \
git-peek-remote git-prune-packed git-read-tree \
git-receive-pack git-rev-list git-rev-parse \
git-rev-tree git-send-pack git-show-branch \
git-show-index git-show-rev-cache git-ssh-fetch \
git-show-index git-ssh-fetch \
git-ssh-upload git-tar-tree git-unpack-file \
git-unpack-objects git-update-index git-update-server-info \
git-upload-pack git-verify-pack git-write-tree \
$(SIMPLE_PROGRAMS)

# Backward compatibility -- to be removed in 0.99.8
PROGRAMS += git-ssh-pull git-ssh-push

PYMODULES = \
gitMergeCommon.py

Expand All @@ -125,7 +128,7 @@ LIB_FILE=libgit.a
LIB_H = \
blob.h cache.h commit.h count-delta.h csum-file.h delta.h \
diff.h epoch.h object.h pack.h pkt-line.h quote.h refs.h \
rev-cache.h run-command.h strbuf.h tag.h tree.h
run-command.h strbuf.h tag.h tree.h

DIFF_OBJS = \
diff.o diffcore-break.o diffcore-order.o diffcore-pathspec.o \
Expand All @@ -135,7 +138,7 @@ LIB_OBJS = \
blob.o commit.o connect.o count-delta.o csum-file.o \
date.o diff-delta.o entry.o ident.o index.o \
object.o pack-check.o patch-delta.o path.o pkt-line.o \
quote.o read-cache.o refs.o rev-cache.o run-command.o \
quote.o read-cache.o refs.o run-command.o \
server-info.o setup.o sha1_file.o sha1_name.o strbuf.o \
tag.o tree.o usage.o $(DIFF_OBJS)

Expand All @@ -148,7 +151,8 @@ ifeq ($(shell uname -s),Darwin)
endif
ifeq ($(shell uname -s),SunOS)
NEEDS_SOCKET = YesPlease
PLATFORM_DEFINES += -DNO_GETDOMAINNAME=1
NEEDS_NSL = YesPlease
PLATFORM_DEFINES += -D__EXTENSIONS__
endif

ifndef SHELL_PATH
Expand Down Expand Up @@ -195,6 +199,10 @@ ifdef NEEDS_SOCKET
LIBS += -lsocket
SIMPLE_LIB += -lsocket
endif
ifdef NEEDS_NSL
LIBS += -lnsl
SIMPLE_LIB += -lnsl
endif

DEFINES += '-DSHA1_HEADER=$(SHA1_HEADER)'

Expand Down Expand Up @@ -250,6 +258,8 @@ git-http-fetch: fetch.o
git-local-fetch: fetch.o
git-ssh-fetch: rsh.o fetch.o
git-ssh-upload: rsh.o
git-ssh-pull: rsh.o fetch.o
git-ssh-push: rsh.o

git-http-fetch: LIBS += -lcurl
git-rev-list: LIBS += $(OPENSSL_LIBSSL)
Expand Down Expand Up @@ -288,12 +298,12 @@ check:
### Installation rules

install: $(PROGRAMS) $(SCRIPTS)
$(INSTALL) -m755 -d $(DESTDIR)$(bindir)
$(INSTALL) -d -m755 $(DESTDIR)$(bindir)
$(INSTALL) $(PROGRAMS) $(SCRIPTS) $(DESTDIR)$(bindir)
$(INSTALL) git-revert $(DESTDIR)$(bindir)/git-cherry-pick
sh ./cmd-rename.sh $(DESTDIR)$(bindir)
$(MAKE) -C templates install
$(INSTALL) -m755 -d $(DESTDIR)$(GIT_PYTHON_DIR)
$(INSTALL) -d -m755 $(DESTDIR)$(GIT_PYTHON_DIR)
$(INSTALL) $(PYMODULES) $(DESTDIR)$(GIT_PYTHON_DIR)

install-doc:
Expand Down
56 changes: 0 additions & 56 deletions build-rev-cache.c

This file was deleted.

6 changes: 4 additions & 2 deletions cmd-rename.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,14 @@ git-tag-script git-tag
git-verify-tag-script git-verify-tag
git-http-pull git-http-fetch
git-local-pull git-local-fetch
git-ssh-pull git-ssh-fetch
git-checkout-cache git-checkout-index
git-diff-cache git-diff-index
git-merge-cache git-merge-index
git-update-cache git-update-index
git-ssh-push git-ssh-upload
git-convert-cache git-convert-objects
git-fsck-cache git-fsck-objects
EOF

# These two are a bit more than symlinks now.
# git-ssh-push git-ssh-upload
# git-ssh-pull git-ssh-fetch
4 changes: 3 additions & 1 deletion commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#include "commit.h"
#include "cache.h"

int save_commit_buffer = 1;

struct sort_node
{
/*
Expand Down Expand Up @@ -264,7 +266,7 @@ int parse_commit(struct commit *item)
sha1_to_hex(item->object.sha1));
}
ret = parse_commit_buffer(item, buffer, size);
if (!ret) {
if (save_commit_buffer && !ret) {
item->buffer = buffer;
return 0;
}
Expand Down
1 change: 1 addition & 0 deletions commit.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ struct commit {
char *buffer;
};

extern int save_commit_buffer;
extern const char *commit_type;

struct commit *lookup_commit(const unsigned char *sha1);
Expand Down
1 change: 0 additions & 1 deletion convert-objects.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#define _XOPEN_SOURCE /* glibc2 needs this */
#define __EXTENSIONS__ /* solaris needs this */
#include <time.h>
#include <ctype.h>
#include "cache.h"
Expand Down
Loading

0 comments on commit 8ac93bc

Please sign in to comment.