Thread (1 message) 1 message, 1 author, 2016-06-16

Re: [PATCH v2] git-p4: add P4 jobs to git commit message

From: Junio C Hamano <hidden>
Date: 2016-06-16 02:18:51

Junio C Hamano [off-list ref] writes:
Not a new problem in this script, but we'd prefer to spell this as

    p4_add_job () {

i.e. a space on both sides of ().
quoted
+	name=$1 &&
+	p4 job -f -i <<-EOF
+	Job: $name
+	Status: open
+	User: dummy
+	Description:
+	EOF
+}
It may be better without $name?
Just so that I won't get misunderstood, with this I do not mean
"Job: $name" line does not have to be there.  I meant that there is
no need to use name variable in this function; just writing $1
instead of $name there is better, as $name is not a function local
variable in POSIX shells.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help