1Git::SVN::Editor(3) User Contributed Perl Documentation Git::SVN::Editor(3)
2
3
4
6 Git::SVN::Editor - commit driver for "git svn set-tree" and dcommit
7
9 use Git::SVN::Editor;
10 use Git::SVN::Ra;
11
12 my $ra = Git::SVN::Ra->new($url);
13 my %opts = (
14 r => 19,
15 log => "log message",
16 ra => $ra,
17 config => SVN::Core::config_get_config($svn_config_dir),
18 tree_a => "$commit^",
19 tree_b => "$commit",
20 editor_cb => sub { print "Committed r$_[0]\n"; },
21 mergeinfo => "/branches/foo:1-10",
22 svn_path => "trunk"
23 );
24 Git::SVN::Editor->new(\%opts)->apply_diff or print "No changes\n";
25
26 my $re = Git::SVN::Editor::glob2pat("trunk/*");
27 if ($branchname =~ /$re/) {
28 print "matched!\n";
29 }
30
32 This module is an implementation detail of the "git svn" command. Do
33 not use it unless you are developing git-svn.
34
35 This module adapts the "SVN::Delta::Editor" object returned by
36 "SVN::Delta::get_commit_editor" and drives it to convey the difference
37 between two git tree objects to a remote Subversion repository.
38
39 The interface will change as git-svn evolves.
40
42 Subversion perl bindings, the core Carp and IO::File modules, and git's
43 Git helper module.
44
45 "Git::SVN::Editor" has not been tested using callers other than git-svn
46 itself.
47
49 SVN::Delta, Git::SVN::Fetcher.
50
52 None reported.
53
55 None.
56
57
58
59perl v5.16.3 2013-06-10 Git::SVN::Editor(3)