summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-07-14 01:46:20 (GMT)
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-14 01:46:20 (GMT)
commit2386d65822c912f0889ac600b1698b0659190133 (patch)
tree26e01b11b643ee2f423f4be3ee92b964e75df7e8 /cache.h
parent2408cff9f738459019709c8c12d0bd8a5605566f (diff)
downloadgit-2386d65822c912f0889ac600b1698b0659190133.zip
git-2386d65822c912f0889ac600b1698b0659190133.tar.gz
git-2386d65822c912f0889ac600b1698b0659190133.tar.bz2
Add first cut at "git protocol" connect logic.
Useful for pulling stuff off a dedicated server. Instead of connecting with ssh or just starting a local pipeline, we connect over TCP to the other side and try to see if there's a git server listening. Of course, since I haven't written the git server yet, that will never happen. But the server really just needs to listen on a port, and execute a "git-upload-pack" when somebody connects. (It should read one packet-line, which should be of the format "git-upload-pack directoryname\n" and eventually we migth have other commands the server might accept).
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 1376700..a42ce7e 100644
--- a/cache.h
+++ b/cache.h
@@ -41,6 +41,16 @@
#endif
/*
+ * Intensive research over the course of many years has shown that
+ * port 9418 is totally unused by anything else. Or
+ *
+ * Your search - "port 9418" - did not match any documents.
+ *
+ * as www.google.com puts it.
+ */
+#define DEFAULT_GIT_PORT 9418
+
+/*
* Environment variables transition.
* We accept older names for now but warn.
*/