~ubuntu-branches/debian/jessie/bzr-fastimport/jessie

« back to all changes in this revision

Viewing changes to exporters/darcs/git-darcs.txt

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2010-11-06 18:40:27 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20101106184027-iclo8iim9equ6i8b
Tags: 0.9.0+bzr279-1
* New upstream snapshot.
* Bump standards version to 3.9.1 (no changes).
* Run testsuite during package build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
$ mkdir git-repo
21
21
$ cd git-repo
22
22
$ git init
23
 
$ git darcs add upstream ../darcs-repo
 
23
$ git darcs add upstream /path/to/darcs-repo
24
24
$ git darcs pull upstream
25
25
 
26
26
... hack, hack, hack ...
70
70
find-git::
71
71
        Searches for git commits matching a darcs patch prefix.
72
72
        The syntax is `find-git <patch-prefix>`.
 
73
 
 
74
== HOOKS
 
75
 
 
76
It's possible to automatically run before and after the fetch and the
 
77
push subcommand. For example if you want to automatically run `darcs
 
78
pull -a` before a `git darcs fetch upstream`:
 
79
 
 
80
----
 
81
git config git-darcs.upstream.pre-fetch "darcs pull -a --repodir=/path/to/darcs-repo"
 
82
----
 
83
 
 
84
Or in case you want to automatically `darcs send` all patches after a
 
85
`git darcs push upstream`:
 
86
 
 
87
----
 
88
git config git-darcs.upstream.post-push "darcs send -a --repodir=/path/to/darcs-repo"
 
89
----
 
90
 
 
91
== SEE-ALSO
 
92
*git*(1), *darcs*(1)