git-lfs/tools
brian m. carlson 69b534ece0 tools: add function to perform shell quoting
In certain cases, such as the GIT_SSH_COMMAND environment variable,
we'll need to pass data to the shell.  Since some of our arguments
contain spaces, we'll need to quote those values.  Introduce a function
to quote strings so that they're suitable for the shell.  For
simplicity's sake, assume anything beyond identifier characters, dot, at
sign, and hyphen-minus needs to be quoted and use single quotes for
doing so.  Handle single quotes in a string in the same way as Git does.
2018-09-04 15:02:41 +00:00
..
humanize tools/humanize: add 'FormatByteRate' to format transfer speed 2018-01-05 18:29:18 -08:00
kv Add RemoveAll and Visit functions to kv store 2016-12-12 10:26:12 +00:00
channels.go extract base channel wrapper to tools 2016-11-18 12:02:38 -07:00
copycallback_test.go progress,tools: move CopyCallback (and related) to 'tools' 2017-11-22 14:08:33 -08:00
copycallback.go progress,tools: move CopyCallback (and related) to 'tools' 2017-11-22 14:08:33 -08:00
cygwin_windows.go Fix tools.TranslateCygwinPath() on MSYS 2017-05-29 23:44:33 +02:00
cygwin.go tools: wrap os.Getwd with cygwin support 2017-02-20 15:25:43 -07:00
filetools_test.go tools/filetools.go: teach ExpandPath() to do path expansion 2018-08-30 16:59:33 -04:00
filetools.go tools/filetools.go: teach ExpandPath() to do path expansion 2018-08-30 16:59:33 -04:00
iotools_test.go update package imports 2016-11-15 10:01:18 -07:00
iotools.go progress,tools: move CopyCallback (and related) to 'tools' 2017-11-22 14:08:33 -08:00
math_test.go tools/math: teach tools.ClampInt to clamp integers 2017-06-09 17:56:21 -06:00
math.go tools/math: teach tools.ClampInt to clamp integers 2017-06-09 17:56:21 -06:00
ordered_set_test.go tools: introduce tools.OrderedSet 2017-06-21 16:50:19 -06:00
ordered_set.go tools: introduce tools.OrderedSet 2017-06-21 16:50:19 -06:00
os_tools.go tools: rename TranslateIfCygwin to TranslateCygwinPath 2017-02-28 13:39:33 -08:00
str_tools_test.go tools: add function to perform shell quoting 2018-09-04 15:02:41 +00:00
str_tools.go tools: add function to perform shell quoting 2018-09-04 15:02:41 +00:00
stringset.go Refactor StringSet into tools package 2016-07-13 14:28:52 +01:00
sync_writer.go tools: add empty functions when missing in *SyncWriter 2017-12-01 09:39:02 -08:00
time_tools_test.go tools/time_tools: test tools.IsExpiredAtOrIn 2017-04-06 13:38:31 -06:00
time_tools.go tools: compare expiration to "time.Now" instead of "from" 2017-08-25 14:48:33 -04:00
util_generic.go Move CopyWithCallback into general tools for re-use 2016-05-19 15:12:46 +01:00
util_linux.go Move CopyWithCallback into general tools for re-use 2016-05-19 15:12:46 +01:00
util_test.go Merge branch 'master' into experimental/transfer-features 2016-05-31 09:30:22 +01:00