Age | Commit message (Collapse) | Author | Files | Lines |
|
git-clone-pack will want it too. Soon.
|
|
It was a misguided attempt to mix fetching and cloning. I'll make
a separate clone thing.
|
|
Not only is it unnecessary, it incorrectly allows extraneous characters
at the end of the argument.
Junio noticed the --merge-order thing, and Jon points out that if we fix
that one, we should fix --show-breaks too.
|
|
|
|
Need to add a final slash. And make it verbose by default, since it's
so slow that otherwise people will think it's died.
|
|
Also, clean it up a lot.
|
|
"git_path()" returns a static pathname pointer into the git directory
using a printf-like format specifier.
"head_ref()" works like "for_each_ref()", except for just the HEAD.
|
|
|
|
|
|
Removed.
|
|
If HEAD happened to point to a cvs branch, move the
working directory forward to the tip of the branch.
Additionally, if master and "origin" are equal,
move master forward to new origin first.
|
|
We didn't sort the refs by date, so if you had multiple refs, the end
result would not be properly sorted.
|
|
We'd rather get the revisions in a slow but timely manner than
have to wait for them.
|
|
It returns the result SHA1 on stdout, so you can do
remote=$(git-fetch-pack host:dir branchname)
and it will unpack the objects and "remote" will be the SHA1 name of the
branch on the other side. You can then save that off, or merge it, or
whatever.
|
|
Now the only piece missing is actually generating the pack-file.
|
|
Remove the "./" at the head, it just looks much nicer.
|
|
|
|
It's meant to be used by "git fetch" for the local and ssh case.
It doesn't actually do the fetching now, but it does discover the common
commit point.
|
|
It's a generic thing for matching refs from the other side.
|
|
I want to use it for git-fetch-pack too.
|
|
|
|
5f3de58ff85c49620ae2a1722d8d4d37c881a054
This patch fixes up the t/t5300 unit tests which were broken by the changes in:
Make the name of a pack-file depend on the objects packed there-in.
Signed-off-by: Jon Seymour <jon.seymour@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
|
|
|
|
Updating the cache is sufficient for most purposes.
If users really want to rebuild the cache, they can specify
the option themselves.
|
|
Previous patch broke branch switching.
|
|
|
|
This is actually subtly wrong. If a short match is found in the object
directory, but would _also_ match another SHA1 ID in a pack (or it shows
in one pack but not another), we'll never have done the pack lookup, and
we think it's unique.
I can't find it in myself to care. You really want to use enough of a
SHA1 that there is never any ambiguity.
|
|
Currently only for unpacked objects, but the infrastructure
is there to do it for packed objects too.
|
|
|
|
This means that the .git/objects/pack directory is also rsync'able,
since the filenames created there-in are either unique or refer to the
same data.
Otherwise you might not be able to pull from a directory that is partly
packed without having to worry about missing objects due to pack-file
name clashes.
|
|
|
|
This, together with "git repack" can be used to clean up unpacked
git archives.
|
|
|
|
It skips writing the pack-file if it ends up being empty.
|
|
More infrastructure to do efficient incremental packs.
|
|
It won't add an object that is already in a pack to the new pack.
|
|
And make git-rev-list just silently ignore non-commit refs if we're not
asking for all objects.
|
|
pack
We'll want this for incremental packing.
|
|
In particular, check that it's a symlink, and points to refs/heads/. We
depend on that these days not only for "git checkout", but also because
fsck and others only check for references in the .git/refs/
subdirectory, not things like HEAD itself.
|
|
Mainly making a lot of local functions and variables be marked "static",
but there was a "zero as NULL" warning in there too.
|
|
|
|
We're pretty sparse-clean already, thanks to earlier efforts, but some
things inevitably creep in.
|
|
It needed to take the GIT_DIR information into account, something that
the original receive-pack usage just never cared about.
|
|
send_pack() was declared to return "int" (although nobody cared), but
didn't actually return anything.
|
|
A couple of bogus "might be used undefined" warnings are avoided
by moving the initializations unnecessarily early.
|
|
|
|
|
|
Remove documentation of irrelevant "type" option.
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
|
|
If we're inside a checked out CVS repository, there is
no need to explicitly specify the module as it is
available in CVS/Repository.
Also read CVS/Root if it's available and -d is not specified.
Finally, explicitly pass root to cvsps as CVS/Root takes
precedence over CVSROOT.
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
|
|
|