diff options
author | Ramkumar Ramachandra <artagnon@gmail.com> | 2013-03-31 18:40:41 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-03-31 21:30:27 -0700 |
commit | 9b39703920b2d64985abcc1348b169d8fa658c24 (patch) | |
tree | 8e56df66006ef4db8827ac00ef556f3d3a27e5bb /trace.c | |
parent | send-email: use "return;" not "return undef;" on error codepaths (diff) | |
download | tgif-9b39703920b2d64985abcc1348b169d8fa658c24.tar.xz |
send-email: drop misleading function prototype
The subroutine check_file_rev_conflict() is called from two places,
both of which expects to pass a single scalar variable and see if
that can be interpreted as a pathname or a revision name. It is
defined with a function prototype ($) to force a scalar context
while evaluating the arguments at the calling site but it does not
help the current calling sites. The only effect it has is to hurt
future calling sites that may want to build an argument list in an
array variable and call it as check_file_rev_confict(@args).
Drop the misleading prototype, as Perlcritic suggests.
While at it, rename the function to avoid new call sites unaware of
this change arising and add a comment clarifying what this function
is for.
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'trace.c')
0 files changed, 0 insertions, 0 deletions