http://git.zx2c4.com/cgit/patch/?id=wip&id2=master This appears to work! Apparently some tests need to be updated: not ok 7 - generate patch for initial commit # # cgit_query "url=foo/patch&id=$root" >tmp # not ok 8 - find `cgit` signature # # tail -1 tmp | grep "^cgit" # # failed 2 among 8 test(s)