Re: [PATCH v3 1/2] Git.pm: add new temp_is_locked function

2013-07-18 Thread Jonathan Nieder
Kyle J. McKay wrote: > That change was made as a result of this feedback: > > On Jul 6, 2013, at 17:11, Jonathan Nieder wrote: >> Kyle McKay wrote: >> >>> The temp_is_locked function can be used to determine whether >>> or not a given name previously passed to temp_acquire is >>> currently locked.

Re: [PATCH v3 1/2] Git.pm: add new temp_is_locked function

2013-07-18 Thread Kyle J. McKay
On Jul 18, 2013, at 11:34, David Rothenberger wrote: Kyle J. McKay gmail.com> writes: +sub temp_is_locked { + my ($self, $name) = _maybe_self( _); + my $temp_fd = \$TEMP_FILEMAP{$name}; + + defined $$temp_fd && $$temp_fd->opened && $TEMP_FILES{$$temp_fd} {locked}; +} + =item tem

Re: [PATCH v3 1/2] Git.pm: add new temp_is_locked function

2013-07-18 Thread David Rothenberger
Kyle J. McKay gmail.com> writes: > +sub temp_is_locked { > + my ($self, $name) = _maybe_self( _); > + my $temp_fd = \$TEMP_FILEMAP{$name}; > + > + defined $$temp_fd && $$temp_fd->opened && > $TEMP_FILES{$$temp_fd}{locked}; > +} > + > =item temp_release ( NAME ) > > =item temp_rel

[PATCH v3 1/2] Git.pm: add new temp_is_locked function

2013-07-06 Thread Kyle J. McKay
From: "Kyle J. McKay" The temp_is_locked function can be used to determine whether or not a given name previously passed to temp_acquire is currently locked. Signed-off-by: Kyle J. McKay --- perl/Git.pm | 33 +++-- 1 file changed, 31 insertions(+), 2 deletions(-) d