git-lfs/commands
Lars Schneider e176f361d6 fix multiple git update-index invocations
The gitIndexer starts a new `git update-index` process when the first
file is given to it. A reference to this process is stored in the `cmd`
variable of the gitIndexer struct. This variable was always `nil` after
the refactoring in ae4d2611 ("move `git update-index` invocation to git
package", 2017-08-02). Consequently, a new `git update-index` process
was invoked for every file.

Fix this by refactoring the `git update-index` invocation, again. This
time we return the subprocess pointer. This is necessary because we
want to call `Wait()` on the process when the gitIndexer is closed.
2017-08-26 13:16:24 +02:00
..
command_checkout.go commands/command_checkout: print shorthand scanner error 2017-04-26 09:11:21 -06:00
command_clean.go commands: warn on 'git lfs clean' operations the presence of large objects 2017-08-15 09:48:00 -06:00
command_clone.go commands: only pass --jobs to 'git clone' if set 2017-06-29 14:41:00 -06:00
command_env.go commands/command_env: prefer lfsapi endpoint finder to config.Config 2017-04-14 13:17:36 -04:00
command_ext.go update package imports 2016-11-15 10:01:18 -07:00
command_fetch.go tq: teach Watch() to return <-chan *tq.Transfer 2017-08-02 13:18:47 -06:00
command_filter_process.go commands,git: make 'WriteStatus' accept a 'FilterProcessStatus' 2017-08-24 18:28:51 -04:00
command_fsck.go Add lfs.storage parameter for overriding LFS storage location 2017-07-07 10:39:55 +03:00
command_install.go commands/install: teach --manual 2017-07-11 10:43:33 -06:00
command_lock.go commands/command_lock: print true locked path instead of argument 2017-04-07 10:55:28 -04:00
command_locks.go Commands/locks: show lock id 2017-02-27 14:16:34 -07:00
command_logs.go update package imports 2016-11-15 10:01:18 -07:00
command_ls_files.go Remove unused callback arg on ScanTree() 2016-12-14 10:53:34 -07:00
command_migrate_import.go commands: teach clean() to return *lfs.Pointer 2017-08-15 09:48:00 -06:00
command_migrate_info.go commands: show no output for entries with no matching files 2017-06-26 09:24:09 -06:00
command_migrate.go commands: make 'git lfs migrate info' default to --above=0 2017-07-31 11:47:13 -06:00
command_pointer.go git: change gitHashObject() to accept an io.Reader 2017-08-22 19:34:30 +02:00
command_post_checkout.go Merge branch 'master' into locking-master-2, with fixes 2017-01-16 12:06:21 +00:00
command_post_commit.go Merge branch 'master' into locking-master-2, with fixes 2017-01-16 12:06:21 +00:00
command_post_merge.go Merge branch 'master' into locking-master-2, with fixes 2017-01-16 12:06:21 +00:00
command_pre_push.go commands: teach uploadContext how to init the gitscanner 2017-02-16 13:24:53 -07:00
command_prune.go tq: teach Watch() to return <-chan *tq.Transfer 2017-08-02 13:18:47 -06:00
command_pull.go tq: teach Watch() to return <-chan *tq.Transfer 2017-08-02 13:18:47 -06:00
command_push.go commands/push: Fix typo in comment 2017-04-22 16:58:26 +02:00
command_smudge.go commands/smudge: update comment in 'delayedSmudge' 2017-08-21 22:44:47 +02:00
command_status.go commands/status: trim contents SHA in blobInfo function 2017-07-24 15:09:24 -06:00
command_track.go commands/track: resolve symlinks before comparing attr paths 2017-07-31 15:33:48 -06:00
command_uninstall.go commands: teach uninstall cmd about --local and --system 2017-01-24 16:33:29 -07:00
command_unlock.go commands: teach 'unlock' to ignore status errs in appropriate conditions 2017-08-03 10:55:52 -06:00
command_untrack.go commands/untrack: quote pattern in output of untrack command 2017-03-24 11:13:11 -06:00
command_update.go all: expand config.Environment interface to support multiple values per key 2017-04-12 17:29:11 -04:00
command_version.go commands: remove last httputil usage 2017-01-04 16:10:53 -07:00
commands_test.go all: expand config.Environment interface to support multiple values per key 2017-04-12 17:29:11 -04:00
commands.go commands: teach clean() to return *lfs.Pointer 2017-08-15 09:48:00 -06:00
path_nix.go commands: osLineEnding() is more descriptive 2017-02-03 17:50:47 -07:00
path_windows.go commands: osLineEnding() is more descriptive 2017-02-03 17:50:47 -07:00
path.go commands: osLineEnding() is more descriptive 2017-02-03 17:50:47 -07:00
pointers.go each command should open and close a gitscanner just once 2016-11-17 17:22:21 -07:00
pull.go fix multiple git update-index invocations 2017-08-26 13:16:24 +02:00
run.go commands/help: print helptext to stdout for consistency with Git 2017-05-09 09:32:55 -06:00
uploader_test.go commands/uploader: test various permutations of supported locking APIs 2017-04-18 09:44:35 -06:00
uploader.go commands: Disable lock verification when using a standalone custom-transfer agent 2017-08-10 18:00:16 +02:00