I solved (I think) how to accept (and verify the correctness of) a tree-ish as argument for 'edit --set-tree'. The first patch in the series adds support to Repository.rev_parse() for doing that. The main (the second) is essentially the same as before. I moved the --set-tree option to be last in the list of options, making it even more obscure-looking. --- Gustav Hållberg (2): Repository.rev_parse: support commits, trees, and blobs edit: Allow setting git tree of a patch stgit/commands/edit.py | 39 ++++++++++++++++++++++++++++----------- stgit/lib/git.py | 10 ++++++---- t/t3300-edit.sh | 15 +++++++++++++++ 3 files changed, 49 insertions(+), 15 deletions(-) -- -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html