summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bcaf60b)
raw | patch | inline | side by side (parent: bcaf60b)
author | Nikolai Weibull <mailing-lists.git@rawuncut.elitemail.org> | |
Thu, 8 Dec 2005 23:28:05 +0000 (00:28 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 8 Dec 2005 23:50:13 +0000 (15:50 -0800) |
This provides (minimal) documentation for the --non-empty command-line
option to the pack-objects command.
Signed-off-by: Nikolai Weibull <nikolai@bitwi.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
option to the pack-objects command.
Signed-off-by: Nikolai Weibull <nikolai@bitwi.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-pack-objects.txt | patch | blob | history | |
pack-objects.c | patch | blob | history |
index d1e93dbb372624d68fa96eb8bed141f1e76f0308..009ec5ab374ef36426d9db32ef31b028a403ed6a 100644 (file)
SYNOPSIS
--------
-'git-pack-objects' [--local] [--incremental] [--window=N] [--depth=N] {--stdout | base-name} < object-list
+'git-pack-objects' [--non-empty] [--local] [--incremental] [--window=N] [--depth=N] {--stdout | base-name} < object-list
DESCRIPTION
that are packed and not in the local object store
(i.e. borrowed from an alternate).
+--non-empty::
+ Only create a packed archive if it would contain at
+ least one object.
+
Author
------
Written by Linus Torvalds <torvalds@osdl.org>
diff --git a/pack-objects.c b/pack-objects.c
index a62c9f8d185aabb9a719397ce6daeeaa61f6ce58..caf3b6be5a1cf85bafd034ed9e2cbe3cd596b26c 100644 (file)
--- a/pack-objects.c
+++ b/pack-objects.c
#include "pack.h"
#include "csum-file.h"
-static const char pack_usage[] = "git-pack-objects [--local] [--incremental] [--window=N] [--depth=N] {--stdout | base-name} < object-list";
+static const char pack_usage[] = "git-pack-objects [--non-empty] [--local] [--incremental] [--window=N] [--depth=N] {--stdout | base-name} < object-list";
struct object_entry {
unsigned char sha1[20];