Commit Graph

21 Commits

Author SHA1 Message Date
Rick Olson
7146bdb130 Use -text instead of -crlf 2015-07-09 10:01:50 -06:00
Scott Barron
87264d0141 Merge pull request #356 from michael-k/track
Fixed some tracking issues and improved codebase of command track
2015-06-01 10:54:12 -04:00
Michael Käufl
3145f2ddf0 Don't track files outside repository 2015-06-01 16:20:59 +02:00
Michael Käufl
ebaef3dc3f Track the relative representation of a path
Fixes github/git-lfs#230
2015-06-01 16:20:59 +02:00
Michael Käufl
6e87008890 Improved detection of duplicate paths 2015-06-01 16:20:59 +02:00
Michael Käufl
213241b895 Removed unnecessary if statement
strings.Contains returns false if `line == ""` (and `substr != ""`).
2015-06-01 00:05:29 +02:00
Michael Käufl
87622df4d0 If attributes file not readable, continue with next one
No need to skip all remaining attributes files.
2015-06-01 00:05:29 +02:00
Michael Käufl
e0000cf2a1 Used a label to continue the outer loop 2015-06-01 00:05:28 +02:00
Michael Käufl
5c42ca3867 Used defer to close the attributes file 2015-06-01 00:05:28 +02:00
Michael Käufl
a5cb344fbf Made sure that .git/info/attributes is not a directory 2015-06-01 00:05:28 +02:00
Michael Käufl
a381b54d80 Rearranged track's helper functions 2015-05-31 23:31:23 +02:00
Michael Käufl
233b4c717b Allowed track only if we're in a working dir
See `git add`; Exit status and message are taken from there.

Fixes github/git-lfs#353
2015-05-30 14:56:47 +02:00
Michael Käufl
639beb65cc Only defer Close() if err is nil
Otherwise f is nil!
2015-05-30 01:36:26 +02:00
Rick Olson
d678d4bf33 update import paths 2015-05-25 12:20:50 -06:00
Rick Olson
ec27bf767c support tracking paths with spaces in the name 2015-05-22 16:11:44 -06:00
Rick Olson
801dfc3283 fail early if the track command runs outside a git repo 2015-05-21 15:42:07 -06:00
Rick Olson
216623196a Use goimports instead of gofmt 2015-05-13 13:43:41 -06:00
Rick Olson
2aa1f7e25f add diff/merge properties to gitattributes 2015-04-24 15:19:19 -06:00
kafkaf-
05d4692e9f Breaking when a known path was found, no need to continue the iteration 2015-04-10 21:44:31 +03:00
kafkaf-
68c1249514 Removed a redundant assignment of a variable by moving it upper 2015-04-10 21:39:20 +03:00
Rick Olson
b500178a06 rename path => track 2015-03-22 12:50:06 -06:00