Skip to content

Instantly share code, notes, and snippets.

@agross
Created August 27, 2015 12:29
Show Gist options
  • Save agross/575ecfda7f6ac1314822 to your computer and use it in GitHub Desktop.
Save agross/575ecfda7f6ac1314822 to your computer and use it in GitHub Desktop.
let file' =
try
let result = ExecProcessAndReturnMessages (fun info ->
info.FileName <- "cygpath"
info.Arguments <- file) (TimeSpan.FromSeconds 5.0)
if result.OK then
trace <| sprintf "Translated Windows path %s to Cygwin path %s" file result.Messages.[0]
result.Messages.[0]
else
file
with
| _ -> trace <| sprintf "Failed to run cygpath, likely not a Cygwin environment"; file
gitCommand "" ("update-index --assume-unchanged " + file')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment