git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[RFC/PATCH 2/3] archive.c: enable traversal of submodules

From
LHLars Hjemli <hjemli@gmail.com>
Date
Jan 11, 2009, 23:45 UTC
Message-ID
<1231717555-10559-3-git-send-email-hjemli@gmail.com>
In-Reply-To
<1231717555-10559-2-git-send-email-hjemli@gmail.com>

The option --submodules can be used to activate traversal of sub- modules when creating archives.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
---
 archive.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/archive.c b/archive.c
index 9ac455d..973dde4 100644
--- a/archive.c
+++ b/archive.c
@@ -262,6 +262,8 @@ static int parse_archive_args(int argc, const char **argv,
 		OPT_STRING(0, "format", &format, "fmt", "archive format"),
 		OPT_STRING(0, "prefix", &base, "prefix",
 			"prepend prefix to each pathname in the archive"),
+		OPT_BOOLEAN(0, "submodules", &traverse_gitlinks,
+			"include reacheable submodules"),
 		OPT__VERBOSE(&verbose),
 		OPT__COMPR('0', &compression_level, "store only", 0),
 		OPT__COMPR('1', &compression_level, "compress faster", 1),
-- 
1.6.1.81.g1df1.dirty
Previous: Lars HjemliNext: Lars Hjemli
Message 3 of 9 in “Enable in-process submodule traversal”
  1. 0/3 Enable in-process submodule traversalLars Hjemli, Jan 11, 2009
  2. 1/3 tree.c: add support for traversal of submodulesLars Hjemli, Jan 11, 2009
  3. 2/3 archive.c: enable traversal of submodulesLars Hjemli, Jan 11, 2009
  4. 3/3 builtin-ls-tree: enable traversal of submodulesLars Hjemli, Jan 11, 2009
  5. Junio C HamanoJan 12, 2009
  6. Lars HjemliJan 12, 2009
  7. Junio C HamanoJan 12, 2009
  8. Lars HjemliJan 12, 2009
  9. Junio C HamanoJan 12, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.