1. Alexey Orlov
  2. SublimeCVSDiff

Commits

Alexey Orlov  committed c33ce04

git support for repo root

  • Participants
  • Parent commits 27db5d5
  • Branches default

Comments (0)

Files changed (2)

File cvs_binding/sublime-diff-git.sublime-settings

View file
     // diff command
     "command" : "git diff -p --no-color --word-diff=none -w HEAD",
 
+    // root search
+    "support_root_search" : true,
+    "root_search.command" : "git rev-parse --show-toplevel",
+
     // regex patterns
-
     "re.src_file" : "^---\\s+(?:a/)?([^\\t]+)",
     "re.dst_file" : "^\\+\\+\\+\\s+b/([^\\t]+)",
 }

File cvs_binding/sublime-diff-hg.sublime-settings

View file
     "root_search.command" : "hg root",
 
     // regex patterns
-
     "re.src_file" : "^---\\s+(?:a/)?([^\\t]+)",
     "re.dst_file" : "^\\+\\+\\+\\s+b/([^\\t]+)",
 }