]> git.ipfire.org Git - thirdparty/git.git/commit - git-svn.perl
git-svn: support for git-svn propset
authorAlfred Perlstein <alfred@freebsd.org>
Sun, 7 Dec 2014 10:47:23 +0000 (02:47 -0800)
committerEric Wong <normalperson@yhbt.net>
Tue, 9 Dec 2014 22:03:15 +0000 (22:03 +0000)
commit83c9433e679635f8fbf8961081ea3581c93ca778
tree4663fdcd4734005a7cfcd54653f748316f20b298
parentc18b86734113ee2aeb0e140c922c8fbd4accc860
git-svn: support for git-svn propset

This change allows git-svn to support setting subversion properties.

It is useful for manually setting properties when committing to a
subversion repo that *requires* properties to be set without requiring
moving your changeset to separate subversion checkout in order to
set props.

This change is initially from David Fraser, appearing at:

  http://mid.gmane.org/1927112650.1281253084529659.JavaMail.root@klofta.sjsoft.com>

They are now forward-ported to most recent git along with fixes to
deal with files in subdirectories.

Style and functional changes from Eric Wong have been taken
in their entirety from:

  http://mid.gmane.org/20141201094911.GA13931@dcvr.yhbt.net

There is a nit to point out: the code does not support
adding props unless there are also content changes to the files as
well.  This is demonstrated in the testcase.

[ew - simplify Git.pm usage for check-attr
    - improve shell portability for tests
    - minor phrasing changes in commit message]

Signed-off-by: David Fraser <davidf@sjsoft.com>
Signed-off-by: Alfred Perlstein <alfred@freebsd.org>
Signed-off-by: Eric Wong <normalperson@yhbt.net>
git-svn.perl
perl/Git/SVN/Editor.pm
t/t9148-git-svn-propset.sh [new file with mode: 0755]