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

[PATCH] git-push: allow pushing from subdirectories

From
Jeff King <peff@peff.net>
Date
Aug 8, 2006, 20:01 UTC
Message-ID
<20060808200132.GA26751@sigio.intra.peff.net>

The semantics are equivalent to pushing from the root; we just try harder to find the .git directory.

Signed-off-by: Jeff King <peff@peff.net>
---
 git.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git.c b/git.c
index 6e72a89..18ba14a 100644
--- a/git.c
+++ b/git.c
@@ -229,7 +229,7 @@ static void handle_internal_command(int 
 		{ "log", cmd_log, NEEDS_PREFIX | USE_PAGER },
 		{ "whatchanged", cmd_whatchanged, NEEDS_PREFIX | USE_PAGER },
 		{ "show", cmd_show, NEEDS_PREFIX | USE_PAGER },
-		{ "push", cmd_push },
+		{ "push", cmd_push, NEEDS_PREFIX },
 		{ "format-patch", cmd_format_patch, NEEDS_PREFIX },
 		{ "count-objects", cmd_count_objects },
 		{ "diff", cmd_diff, NEEDS_PREFIX },
-- 
1.4.2.rc3.g07ef-dirty
Message 1 of 1 in “git-push: allow pushing from subdirectories”
  1. git-push: allow pushing from subdirectoriesJeff King, Aug 8, 2006

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.