All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] git-svn: propset support v2
@ 2014-12-06 22:29 Alfred Perlstein
  2014-12-07  9:25 ` Eric Sunshine
  0 siblings, 1 reply; 2+ messages in thread
From: Alfred Perlstein @ 2014-12-06 22:29 UTC (permalink / raw)
  To: git
  Cc: Eric Wong, Jonathan Nieder, Junio C Hamano, Michael G. Schwern,
	David Fraser

I have incorporated Eric Wong's feedback into the git-svn propset support patch.

Issues resolved:
1) Test-case written.
2) Remove dead code.
3) Use shorter vars for formatting.
4) Fix bool comparisons.
5) Check for filesystem errors on write to .gitattribute file.
6) Use command_output_pipe() instead of open my $fh, '-|', ...
7) Refactor check for existing props.

There is a nit that I want to point out.  The code does not support adding props
unless there are also content changes to the files as well.  You can see this in
the testcase.

That is still sufficient for many people's workflows (FreeBSD at
least).  So I am wondering if this is OK. 

I would gladly take any pointers to making it work with unchanged
files either for a later diff or to wrap this up.

Thank you.

Alfred Perlstein (1):
  git-svn: Support for git-svn propset

 git-svn.perl               | 49 +++++++++++++++++++++++++++++++-
 perl/Git/SVN/Editor.pm     | 43 ++++++++++++++++++++++++++++
 t/t9148-git-svn-propset.sh | 71 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 162 insertions(+), 1 deletion(-)
 create mode 100755 t/t9148-git-svn-propset.sh

-- 
2.1.2

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

* Re: [PATCH] git-svn: propset support v2
  2014-12-06 22:29 [PATCH] git-svn: propset support v2 Alfred Perlstein
@ 2014-12-07  9:25 ` Eric Sunshine
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Sunshine @ 2014-12-07  9:25 UTC (permalink / raw)
  To: Alfred Perlstein
  Cc: Git List, Eric Wong, Jonathan Nieder, Junio C Hamano,
	Michael G. Schwern, David Fraser

On Sat, Dec 6, 2014 at 5:29 PM, Alfred Perlstein <alfred@freebsd.org> wrote:
> I have incorporated Eric Wong's feedback into the git-svn propset support patch.
>
> There is a nit that I want to point out.  The code does not support adding props
> unless there are also content changes to the files as well.  You can see this in
> the testcase.

This is an important nugget of information which would be worthwhile
to mention in the commit message of the patch rather than here as mere
commentary.

> That is still sufficient for many people's workflows (FreeBSD at
> least).  So I am wondering if this is OK.
>
> I would gladly take any pointers to making it work with unchanged
> files either for a later diff or to wrap this up.

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

end of thread, other threads:[~2014-12-07  9:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-06 22:29 [PATCH] git-svn: propset support v2 Alfred Perlstein
2014-12-07  9:25 ` Eric Sunshine

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.