Commit Graph

86 Commits

Author SHA1 Message Date
risk danger olson
da415d520c merge conflicts from master 2017-01-06 14:33:54 -07:00
risk danger olson
fecdc9e745 commands: keep a global lfsapi.Client and tq.Manifest for a single lfs command 2017-01-04 16:10:30 -07:00
risk danger olson
2b20d510cc tq: remove remote/operation/access from tq.Manifest, make remote an arg of NewTransferQueue() 2017-01-04 14:46:30 -07:00
risk danger olson
7302143a01 commands: remove magical TransferManifest() in favor of explicit buildTransferManifest() 2017-01-04 10:36:09 -07:00
Taylor Blau
6f54232890 commands,lfs: teach lfs.DecodeFrom to return an io.Reader 2016-12-23 12:16:57 -07:00
Taylor Blau
b3bab2407c commands: warn when malformed pointers are encountered 2016-12-22 15:13:09 -07:00
Taylor Blau
cfcba6ff89 commands,lfs: stream entire contents after encountering a malformed pointer 2016-12-22 15:11:23 -07:00
risk danger olson
bf173a7a21 teach smudge how to use the filter 2016-11-21 16:34:57 -07:00
risk danger olson
f92bd3b214 remove deprecated features 2016-11-18 07:44:20 -07:00
risk danger olson
bba8f3b876 update package imports 2016-11-15 10:01:18 -07:00
Taylor Blau
ad1d90e257 commands/smudge: fix documentation 2016-11-09 08:38:25 -07:00
Taylor Blau
c8120f3362 commands/smudge: 💅 2016-11-08 18:04:45 -07:00
Taylor Blau
b2d3630ce9 commands: reduce code-dupe between smudge implementations 2016-11-08 17:38:15 -07:00
risk danger olson
6245b36755 'smudge --info' is deprecated in favor of 'ls-files' 2016-11-08 15:53:14 -07:00
Steve Streeting
3a7ef57fc3 Refactor FilenamePassesIncludeExcludeFilter into tools package 2016-10-31 12:45:12 +00:00
risk danger olson
a12cdc889f RegisterCommand() can no longer disable commands
the config is available at init(), so isCommandEnabled() checks can be
pulled out of the RegisterCommand() callback, simplifying its signature.
2016-09-01 10:09:38 -06:00
risk danger olson
093e6d49a2 update all command setup to use RegisterCommand 2016-09-01 08:46:26 -06:00
Taylor Blau
0f63130c23 commands, lfs: resolve localstorage in PreRun, not init 2016-08-22 16:21:04 -06:00
risk danger olson
831bcc4358 errors: remove Error prefix 2016-08-19 14:03:39 -06:00
risk danger olson
2473068345 rename errutil to errors 2016-08-18 14:20:33 -06:00
risk danger olson
44cd61ae04 Merge branch 'master' into config-next-remove-legacy 2016-08-16 10:21:54 -06:00
Taylor Blau
ec501991a4 config,etc: remove uses of GetenvBool 2016-08-10 13:57:04 -06:00
risk danger olson
844a1f479e remove global *transfer.Manifest from commands pkg
only needed in a few commands
2016-08-10 10:08:08 -06:00
risk danger olson
d3c57fc51b use the global *transfer.Manifest setup in commands.Run() 2016-08-10 09:42:40 -06:00
risk danger olson
98af5944e1 build commands outside of package init() 2016-08-10 09:33:25 -06:00
risk danger olson
53130bb5c0 remove global *transfer.Manifest instance 2016-08-09 16:07:41 -06:00
risk danger olson
698b24e0ad a few more config.Config references in the commands pkg 2016-07-21 17:18:48 -06:00
Taylor Blau
4593d0a641 vendor: vendor dependencies in vendor/ using Glide
- script/vendor received an update in order to work with Glide
- import paths have been rewritten to work with GO15VENDOREXPERIMENT
2016-05-23 12:10:35 -06:00
Steve Streeting
ab1af11720 Refactor errors and credentials into own packages to break cycles 2016-05-16 15:06:02 +01:00
Steve Streeting
c4bbd3724e Major refactor to pull things into config, httputil, tools
Mainly required to avoid cyclical dependencies when separating other things
2016-05-13 17:38:06 +01:00
Steve Streeting
f2d53ee98d Add config/env options to not fail smudge filter on download fail #1195 2016-05-10 11:38:17 +01:00
Jukka Lehtniemi
4450744f7e Review fix: copy from reference in command_smudge 2016-04-05 22:06:45 +03:00
risk danger olson
b01eaf7e86 "media" word is left over from "git media" days 2016-01-29 14:41:40 -07:00
Andrew Johnson
71bfd4e405 smudge --skip will now smudge if object is in cache.
This change makes it so --skip does the smudge if the file
is in cache. It still skips automatic downloads as one would
expect.

This is more convenient, since it prevents one from having
to 'git lfs pull' after every 'git checkout' if the needed
objects are already available in .git/lfs/objects.

Note that the --skip option for smudge is documented as
follows:
"Skip automatic downloading of objects on clone or pull."
So even after this change we're still in line with the
documentation.
2015-11-11 21:54:00 -08:00
Steve Streeting
417fd7374a Fix clone fail when fetch is excluded globally (#759)
Smudge command should return 0 if download was optional and didn't occur
2015-10-22 11:30:35 +01:00
rubyist
26af3bc780 Keep logging the error, just exit 2 2015-10-12 16:50:13 -04:00
rubyist
f7c0a166c3 Use Exit() instead of Panic() 2015-10-12 16:42:59 -04:00
rubyist
d3e24304ca If a smudge operation fails, the smudge command should exit 1 2015-10-12 16:35:48 -04:00
Rick Olson
c096ad322f update docs in man page 2015-09-23 14:22:38 -06:00
Rick Olson
8cd51c0086 rename the options to SKIP_SMUDGE and --skip-smudge 2015-09-23 13:43:04 -06:00
Rick Olson
5729eac0be teach smudge to skip lfs activities with GIT_LFS_SMUDGE_PASSTHROUGH=1 2015-09-23 11:37:32 -06:00
rick
795a1ebc0e remove all Short messages 2015-09-17 16:08:28 -06:00
rubyist
c57a8992e2 Error context can hold any kind of data, simplify the cleanPointerError 2015-08-28 12:08:57 -04:00
rubyist
cd754db91a First pass at getting rid of WrappedError 2015-08-21 11:50:02 -04:00
Steve Streeting
bf8bade4cf Don't download on smudge if file is filtered by include/exclude config 2015-08-10 17:00:10 +01:00
Steve Streeting
e0e56caccd Never download anything when using the checkout command
This was always the intention but the PointerSmudge functions would
automatically do it if the local files were missing. Now they take a
boolean argument to say whether to download or not, and the case of
skipped smudge is dealt with by writing out the original pointer data
and returning a known non-fatal error.
2015-08-06 17:12:11 +01:00
Rick Olson
d678d4bf33 update import paths 2015-05-25 12:20:50 -06:00
Rick Olson
216623196a Use goimports instead of gofmt 2015-05-13 13:43:41 -06:00
rubyist
0a9ebafc6a Merge branch 'master' into concurrent-uploads
Conflicts:
	commands/command_push.go
	lfs/pointer.go
	lfs/pointer_clean.go
	lfs/pointer_smudge.go
2015-04-29 11:46:20 -04:00
Rick Olson
596c5f6560 requires stdin content on certain commands
Taken from:

http://stackoverflow.com/questions/22744443/check-if-there-is-something-
to-read-on-stdin-in-golang
2015-04-24 14:24:32 -06:00