[PATCH] D59837: Add "git llvm revert" subcommand

Jordan Rupprecht via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 26 12:47:48 PDT 2019


rupprecht created this revision.
rupprecht added reviewers: jyknight, mehdi_amini, jlebar.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The current git-svnrevert script only works with git-svn repos (e.g. using "git svn find-rev" to find the commit to revert). This adds a similar implementation that works with the llvm git command handler.

Usage:

  // Revert by svn id
  $ git llvm revert r123456
  // Forgetting the 'r' is fine
  $ git llvm revert 123456
  // Git commit hash also fine
  $ git llvm revert abc123456
  // Push revert upstream (drop the -n)
  $ git llvm push -n

Regardless of how the command is invoked (with a svn revision or git hash), the message is:

  Revert [LibFoo] Change Foo implementation
  
  This reverts r123456 (git commit abc123)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D59837

Files:
  llvm/utils/git-svn/git-llvm

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59837.192330.patch
Type: text/x-patch
Size: 4446 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190326/c128b392/attachment.bin>


More information about the llvm-commits mailing list