Taylor Blau
0cdbe90662
test/test-track: examine system gitattributes
2018-06-18 19:43:03 -05:00
Taylor Blau
719921585e
test/test-track: examine global gitattributes
2018-06-18 19:43:03 -05:00
Taylor Blau
49bdc2b1b0
commands/{un,}track: local-prefix agnostic comparison
...
This patch use the trimCurrentPrefix utility introduced in the previous
patch to make all .gitattributes comparisons agnostic to the
"current-prefix" of "./" or ".\".
Since we treat both sides of the comparison as having passed through
"trimCurrentPrefix", we harden ourselves against "legacy"-style
.gitattributes patterns containing prefixes, and "modern"-style ones
lacking prefixes.
That means that both combinations of "git lfs untrack ./a.dat" and "git
lfs untrack a.dat" will remove both of these lines from a .gittatributes
file:
./a.dat filter=lfs ...
a.dat filter=lfs ...
Signed-off-by: Taylor Blau <me@ttaylorr.com>
2018-04-05 10:51:26 -07:00
Taylor Blau
85faf514b8
test: ensure commented attr lines are ignored
2017-11-17 08:21:22 -08:00
rick olson
da28c70c14
commands: convert backslash to slash when writing to .gitattributes
2017-09-27 16:14:09 -06:00
Taylor Blau
df76acf33b
commands: allow $GIT_LFS_TRACK_NO_INSTALL_HOOKS to disable hook installation
2017-09-14 12:45:46 -04:00
Taylor Blau
3e334a4090
Merge branch 'master' into delay
2017-08-24 18:00:53 -04:00
Taylor Blau
01161b784d
test: fix 'refute_file_writable' typo
2017-08-17 18:09:10 -06:00
Taylor Blau
3f46d4f8f1
test: fix 'assert_file_writable' typo
2017-08-17 18:08:47 -06:00
Taylor Blau
bc376b805a
test: simplify test command with mkdir -p
2017-08-17 15:48:14 -06:00
Taylor Blau
e764429bab
commands/filter_process: implement 'delay' capability
2017-08-15 16:51:38 -06:00
Taylor Blau
36ead91123
commands/track: resolve symlinks before comparing attr paths
2017-07-31 15:33:48 -06:00
Taylor Blau
624d85684d
commands/track: quote pattern in output of track command
2017-03-24 11:13:11 -06:00
Taylor Blau
d38a816c53
commands/track: add "#" -> "\#" escape sequence
2017-03-23 17:19:26 -06:00
Taylor Blau
377ab8e7f2
commands/track: use escapeTrack pattern over strings.Replace
2017-03-23 17:08:48 -06:00
risk danger olson
cb2832f918
test: add assert_file_writable() and refute_file_writable()
...
This is the only way I could get the rpm docker builds to pass :(
2017-02-28 16:45:11 -08:00
risk danger olson
f8b2f12d3e
Merge branch 'master' into track-patterns
2017-02-13 14:05:46 -07:00
risk danger olson
a98320f85c
test: don't rely on order of maps to write track args in the same order
2017-02-13 14:05:40 -07:00
risk danger olson
b01cb57ce7
test: assert that existing gitattributes lines are not clobbered
2017-02-07 10:40:25 -07:00
risk danger olson
16664b56a9
commands: teach track how to handle empty lines in .gitattributes
2017-02-07 10:33:58 -07:00
risk danger olson
31311464dd
test file line ending
2017-02-03 17:28:15 -07:00
risk danger olson
4c0ac88da8
commands: actually use line ending from core.autocrlf
2017-02-03 17:06:05 -07:00
risk danger olson
8c0043f54d
commands: look at autocrlf for the line ending
2017-02-03 16:31:06 -07:00
risk danger olson
19969dc0be
test: use windows cr when necessary
2017-02-03 15:40:44 -07:00
Steve Streeting
3652681458
Create assert_attributes_count helper to tidy up lockable tests
2017-01-09 12:02:27 +00:00
Steve Streeting
98919456b8
Add the ability to change lockable attribute to git lfs track
2016-12-19 16:47:42 +00:00
risk danger olson
9a803419e9
update the code to be consistent with 'pattern' name
2016-11-10 15:29:17 -07:00
Taylor Blau
08862035ef
commands/track: remove --no-touch option
2016-07-06 08:34:50 -06:00
Taylor Blau
8b8ea26400
commands/track: teach track
how to --dry-run
2016-07-06 08:34:49 -06:00
Taylor Blau
5e18bf73ce
test/track: use log from git lfs track
instead of atime
2016-07-06 08:34:49 -06:00
Taylor Blau
c3f3842955
cmd,doc,test: teach `git lfs track --{no-touch,verbose}
2016-07-06 08:34:49 -06:00
Taylor Blau
81e525cd86
commands, test: change to blocklist
2016-07-05 16:15:29 -06:00
Taylor Blau
e34f7b33e1
test/track: touch and stage files
2016-07-05 13:46:32 -06:00
Taylor Blau
405eaaf992
commands/track: ignore blacklisted paths by glob and name
2016-07-01 15:53:58 -06:00
Steve Streeting
e8deb6ebbf
Skip track absolute test on Windows, MinGW bash doesn't pass rooted correctly
2016-03-15 15:10:19 +00:00
risk danger olson
51e2819361
pass gitattributes patterns (mostly) unchanged
2016-02-03 16:50:07 -07:00
Steve Streeting
8af895cfb7
Fix "outside repository" error when "git lfs track" in a symlinked dir
2015-11-06 09:56:32 +00:00
Steve Streeting
7d9c2bebf0
Fix track test on Windows
2015-10-22 16:17:01 +01:00
Rick Olson
202ae122d4
update the shebang lines to use bash
2015-07-29 20:37:31 -06:00
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
ec756f6b15
Extended test of tracking files outside the repo
2015-06-01 16:20:59 +02:00
Michael Käufl
cb9ff2a36f
Added a failing test for github/git-lfs#230
2015-06-01 16:20:59 +02:00
Michael Käufl
bf0e10a321
Added test concerning recognition of duplicate paths
2015-06-01 12:58:27 +02:00
Michael Käufl
73d54e1f68
Added failing test for github/git-lfs#353
2015-05-30 14:56:47 +02:00
Rick Olson
e2b2716853
== is bash only, use = for string comparisons
2015-05-26 16:15:52 -06:00
Rick Olson
ec27bf767c
support tracking paths with spaces in the name
2015-05-22 16:11:44 -06:00
Rick Olson
f033ce9352
single grep
2015-05-22 15:51:12 -06:00
Rick Olson
7bbd60ddc7
update test to try adding the file twice
2015-05-21 16:18:53 -06:00
Rick Olson
801dfc3283
fail early if the track command runs outside a git repo
2015-05-21 15:42:07 -06:00