Thread (61 messages) 61 messages, 7 authors, 2022-12-12

Re: [PATCH 11/12] fsmonitor: test updates

From: Ævar Arnfjörð Bjarmason <hidden>
Date: 2022-10-18 12:43:39

On Sun, Oct 09 2022, Eric DeCosta via GitGitGadget wrote:
From: Eric DeCosta <redacted>
quoted hunk ↗ jump to hunk
+wait_for_update () {
+	func=$1 &&
+	file=$2 &&
+	sz=$(wc -c < "$file") &&
+	last=0 &&
+	$func &&
Odd not to quote "$func" here, but anyway...
quoted hunk ↗ jump to hunk
+rename_directory () {
+	mv dirtorename dirrenamed
+}
...uh, we need to wrap "mv"? Why?

-	mv dirtorename dirrenamed &&
+	wait_for_update rename_directory "$PWD/.git/trace" &&
Just to get around some quoting issue here?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help