commands: teach '--everything' to 'git lfs migrate'#2558
Merged
Conversation
rubyist
approved these changes
Sep 7, 2017
chrisd8088
added a commit
to chrisd8088/git-lfs
that referenced
this pull request
Apr 30, 2021
The last test in this file has been accidentally skipped since it was added in commit c8c29f5 in PR git-lfs#2558, so we just ensure it runs by removing the early exit call.
chrisd8088
added a commit
to chrisd8088/git-lfs
that referenced
this pull request
May 1, 2021
The last test in this file has been accidentally skipped since it was added in commit c8c29f5 in PR git-lfs#2558, so we just ensure it runs by removing the early exit call. We also change one use of "wc -l" to "wc -c" to ensure we are indeed checking that the command outputs nothing; otherwise, if it happened to output one line, the "echo -n" would remove the trailing newline and "wc -l" would report zero.
chrisd8088
added a commit
to chrisd8088/git-lfs
that referenced
this pull request
May 2, 2021
The last test in this file has been accidentally skipped since it was added in commit c8c29f5 in PR git-lfs#2558, so we just ensure it runs by removing the early exit call. We also change one use of "wc -l" to "wc -c" to ensure we are indeed checking that the command outputs nothing; otherwise, if it happened to output one line, the "echo -n" would remove the trailing newline and "wc -l" would report zero.
pcal43
pushed a commit
to pcal43/git-lfs-hack
that referenced
this pull request
Jul 22, 2021
The last test in this file has been accidentally skipped since it was added in commit c8c29f5 in PR git-lfs#2558, so we just ensure it runs by removing the early exit call. We also change one use of "wc -l" to "wc -c" to ensure we are indeed checking that the command outputs nothing; otherwise, if it happened to output one line, the "echo -n" would remove the trailing newline and "wc -l" would report zero.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request teaches the
--everythingflag to theimportandinfomodes ofgit-lfs-migrate(1).--everythingindicates that all local references should be migrated. In other words--everythingmeans "migrate the entire section of my repository's local copy that is reachable by any reference". Practically, this means "migrate everything".Previously, in order to do this, users had to do some combination of:
which is correct, but not useable. The presence of
--everythinghas the same practical effect as making the included refspec the output ofgit show-ref --heads --tags(viagit.LocalRefs())./cc @git-lfs/core