git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Enhancements to the bundle documentation
@ 2008-02-24 13:41 Santi Béjar
  2008-02-24 13:42 ` [PATCH 1/3] urls.txt: Add bundles to the list of local urls Santi Béjar
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Santi Béjar @ 2008-02-24 13:41 UTC (permalink / raw)
  To: git; +Cc: Santi Béjar

At the end the most convenient way to work with bundles (at least for me) is
just:

$ git bundle create mybundle HEAD --since=2.weeks.ago

or:

[alias]
	bpush = bundle create bundle --since=2.weeks.ago

$ git bpush HEAD

The bundles are bigger than strictly necessary, but not that much.

Santi

Santi Béjar (3):
      urls.txt: Add bundles to the list of local urls.
      git-bundle.txt: Bundles as [remote ""] is a feature, not an example
      git-bundle.txt: Add different strategies to create the bundle

 Documentation/git-bundle.txt |   66 +++++++++++++++++++++++++++++------------
 Documentation/urls.txt       |    5 ++-
 2 files changed, 49 insertions(+), 22 deletions(-)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/3] urls.txt: Add bundles to the list of local urls.
  2008-02-24 13:41 [PATCH 0/3] Enhancements to the bundle documentation Santi Béjar
@ 2008-02-24 13:42 ` Santi Béjar
  2008-02-24 13:42 ` [PATCH 2/3] git-bundle.txt: Bundles as [remote ""] is a feature, not an example Santi Béjar
  2008-02-24 13:42 ` [PATCH 3/3] git-bundle.txt: Add different strategies to create the bundle Santi Béjar
  2 siblings, 0 replies; 4+ messages in thread
From: Santi Béjar @ 2008-02-24 13:42 UTC (permalink / raw)
  To: git; +Cc: Santi Béjar


Signed-off-by: Santi Béjar <sbejar@gmail.com>
---
 Documentation/urls.txt |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Documentation/urls.txt b/Documentation/urls.txt
index 81ac17f..894bb46 100644
--- a/Documentation/urls.txt
+++ b/Documentation/urls.txt
@@ -34,13 +34,14 @@ To sync with a local directory, you can use:
 ===============================================================
 - /path/to/repo.git/
 - file:///path/to/repo.git/
+- /path/to/bundle
 ===============================================================
 
 ifndef::git-clone[]
-They are mostly equivalent, except when cloning.  See
+The first two are mostly equivalent, except when cloning.  See
 linkgit:git-clone[1] for details.
 endif::git-clone[]
 
 ifdef::git-clone[]
-They are equivalent, except the former implies --local option.
+The first two are equivalent, except the former implies --local option.
 endif::git-clone[]
-- 
1.5.4.3.293.gac81

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/3] git-bundle.txt: Bundles as [remote ""] is a feature, not an example
  2008-02-24 13:41 [PATCH 0/3] Enhancements to the bundle documentation Santi Béjar
  2008-02-24 13:42 ` [PATCH 1/3] urls.txt: Add bundles to the list of local urls Santi Béjar
@ 2008-02-24 13:42 ` Santi Béjar
  2008-02-24 13:42 ` [PATCH 3/3] git-bundle.txt: Add different strategies to create the bundle Santi Béjar
  2 siblings, 0 replies; 4+ messages in thread
From: Santi Béjar @ 2008-02-24 13:42 UTC (permalink / raw)
  To: git; +Cc: Santi Béjar


Signed-off-by: Santi Béjar <sbejar@gmail.com>
---
 Documentation/git-bundle.txt |   38 ++++++++++++++++++++------------------
 1 files changed, 20 insertions(+), 18 deletions(-)

diff --git a/Documentation/git-bundle.txt b/Documentation/git-bundle.txt
index 72f080a..1143cdc 100644
--- a/Documentation/git-bundle.txt
+++ b/Documentation/git-bundle.txt
@@ -92,6 +92,26 @@ It is okay to err on the side of conservatism, causing the bundle file
 to contain objects already in the destination as these are ignored
 when unpacking at the destination.
 
+REMOTES
+-------
+
+With something like this in your config:
+
+[remote "bundle"]
+    url = /path/to/file.bdl
+    fetch = refs/heads/*:refs/remotes/bundle/*
+
+You can place a bundle in /path/to/file.bdl and then these commands:
+
+------------
+$ git ls-remote bundle
+$ git fetch bundle
+$ git pull bundle
+------------
+
+would treat it as if it is talking with a remote side over the
+network.
+
 EXAMPLE
 -------
 
@@ -121,24 +141,6 @@ $ git-fetch mybundle  refspec
 where refspec is refInBundle:localRef
 
 
-Also, with something like this in your config:
-
-[remote "bundle"]
-    url = /home/me/tmp/file.bdl
-    fetch = refs/heads/*:refs/remotes/origin/*
-
-You can first sneakernet the bundle file to ~/tmp/file.bdl and
-then these commands:
-
-------------
-$ git ls-remote bundle
-$ git fetch bundle
-$ git pull bundle
-------------
-
-would treat it as if it is talking with a remote side over the
-network.
-
 Author
 ------
 Written by Mark Levedahl <mdl123@verizon.net>
-- 
1.5.4.3.293.gac81

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 3/3] git-bundle.txt: Add different strategies to create the bundle
  2008-02-24 13:41 [PATCH 0/3] Enhancements to the bundle documentation Santi Béjar
  2008-02-24 13:42 ` [PATCH 1/3] urls.txt: Add bundles to the list of local urls Santi Béjar
  2008-02-24 13:42 ` [PATCH 2/3] git-bundle.txt: Bundles as [remote ""] is a feature, not an example Santi Béjar
@ 2008-02-24 13:42 ` Santi Béjar
  2 siblings, 0 replies; 4+ messages in thread
From: Santi Béjar @ 2008-02-24 13:42 UTC (permalink / raw)
  To: git; +Cc: Santi Béjar


Signed-off-by: Santi Béjar <sbejar@gmail.com>
---
 Documentation/git-bundle.txt |   38 +++++++++++++++++++++++++++++++-------
 1 files changed, 31 insertions(+), 7 deletions(-)

diff --git a/Documentation/git-bundle.txt b/Documentation/git-bundle.txt
index 1143cdc..be6c7d9 100644
--- a/Documentation/git-bundle.txt
+++ b/Documentation/git-bundle.txt
@@ -119,27 +119,51 @@ Assume two repositories exist as R1 on machine A, and R2 on machine B.
 For whatever reason, direct connection between A and B is not allowed,
 but we can move data from A to B via some mechanism (CD, email, etc).
 We want to update R2 with developments made on branch master in R1.
+
+To create the bundle you have to specify the basis. You have some options:
+
+- Without basis.
++
+This is usefull to send the whole history.
+
+------------
+$ git bundle create mybundle master
+------------
+
+- Using temporally tags.
++
 We set a tag in R1 (lastR2bundle) after the previous such transport,
 and move it afterwards to help build the bundle.
 
-in R1 on A:
-
 ------------
 $ git-bundle create mybundle master ^lastR2bundle
 $ git tag -f lastR2bundle master
 ------------
 
-(move mybundle from A to B by some mechanism)
+- Using a tag present in both repositories
+
+------------
+$ git bundle create mybundle master ^v1.0.0
+------------
+
+- A basis based on time.
+
+------------
+$ git bundle create mybundle master --since=10.days.ago
+------------
 
-in R2 on B:
+- With a limit on the number of commits
 
 ------------
-$ git-bundle verify mybundle
-$ git-fetch mybundle  refspec
+$ git bundle create mybundle master -n 10
 ------------
 
-where refspec is refInBundle:localRef
+Then you move mybundle from A to B, and in R2 on B:
 
+------------
+$ git-bundle verify mybundle
+$ git-fetch mybundle master:localRef
+------------
 
 Author
 ------
-- 
1.5.4.3.293.gac81

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-02-24 13:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-24 13:41 [PATCH 0/3] Enhancements to the bundle documentation Santi Béjar
2008-02-24 13:42 ` [PATCH 1/3] urls.txt: Add bundles to the list of local urls Santi Béjar
2008-02-24 13:42 ` [PATCH 2/3] git-bundle.txt: Bundles as [remote ""] is a feature, not an example Santi Béjar
2008-02-24 13:42 ` [PATCH 3/3] git-bundle.txt: Add different strategies to create the bundle Santi Béjar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).