From: Christian Weisgerber Subject: diff vs. patch, path-prefix To: gameoftrees@openbsd.org Date: Mon, 11 Apr 2022 16:07:32 +0200 Is it overly naive by me to expect got diff | got patch to work? E.g.: $ cd /usr/src $ ssh host 'cd /usr/src && got diff master work' | got patch That is fine of course. However, when you check out subtrees, it breaks. E.g.: $ cd sys # previously checked out with -p sys $ ssh host 'cd sys && got diff master work' | got patch Diff always produces full paths from the repository root. Patch tries to match paths against the work tree. Individually that makes sense, but the combination somehow feels inconsistent. Hmm. -- Christian "naddy" Weisgerber naddy@mips.inka.de