Skip to content

Remove git lfs clone command from man#3301

Merged
ttaylorr merged 1 commit intogit-lfs:masterfrom
gtsiolis:remove-git-lfs-clone-command-from-man
Oct 5, 2018
Merged

Remove git lfs clone command from man#3301
ttaylorr merged 1 commit intogit-lfs:masterfrom
gtsiolis:remove-git-lfs-clone-command-from-man

Conversation

@gtsiolis
Copy link
Contributor

@gtsiolis gtsiolis commented Oct 4, 2018

The warning you get when you run git lfs clone is a bit misleading (see 47fa852#r30762174). This will remove the git lfs clone command from man (see 47fa852#r30753241). @PastelMobileSuit could you review this? 🍄

Copy link
Contributor

@PastelMobileSuit PastelMobileSuit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for putting this together, it looks great! ✨

If you want to remove git lfs checkout as well I'm all for that, as that's also been deprecated! @ttaylorr are you on-board with that change as well?

@gtsiolis
Copy link
Contributor Author

gtsiolis commented Oct 4, 2018

Thanks @PastelMobileSuit! I've also removed git lfs checkout in f5a42ec. @ttaylorr let me know if you're ok with this. Otherwise I can revert the additional change.

@gtsiolis gtsiolis changed the title Remove git lfs clone command from man Remove deprecated commands from man Oct 4, 2018
@ttaylorr
Copy link
Contributor

ttaylorr commented Oct 5, 2018 via email

@ttaylorr
Copy link
Contributor

ttaylorr commented Oct 5, 2018 via email

@gtsiolis gtsiolis force-pushed the remove-git-lfs-clone-command-from-man branch from f5a42ec to 67723dd Compare October 5, 2018 07:55
@gtsiolis gtsiolis changed the title Remove deprecated commands from man Remove git lfs clone command from man Oct 5, 2018
@gtsiolis
Copy link
Contributor Author

gtsiolis commented Oct 5, 2018

@ttaylorr thanks for the meticulous response. Yes, all git lfs clone related commands (including the man git-lfs-clone command) should work as before. Also, I agree to not removing git lfs checkout since it's no longer deprecated. However, should we remove the WARNING message or the whole msg in the following part instead?

msg := []string{
"WARNING: 'git lfs checkout' is deprecated and will be removed in v3.0.0.",
"'git checkout' has been updated in upstream Git to have comparable speeds",
"to 'git lfs checkout'.",
}
fmt.Fprintln(os.Stderr, strings.Join(msg, "\n"))

Can you please drop this change (instead of reverting it, so as not to add additional commits to the history)? Thank you!

I shouldn't have used the word revert in this repository because I actually meant to say remove or even better reset --hard. I've dropped the change and updated the pull request title. 😅

@ttaylorr ttaylorr merged commit 20f8acd into git-lfs:master Oct 5, 2018
@ttaylorr
Copy link
Contributor

ttaylorr commented Oct 5, 2018 via email

@ttaylorr
Copy link
Contributor

ttaylorr commented Oct 5, 2018

@gtsiolis Thanks again for your wonderful contribution!

@ttaylorr ttaylorr added this to the v2.6.0 milestone Oct 5, 2018
@gtsiolis
Copy link
Contributor Author

gtsiolis commented Oct 5, 2018

Thanks @ttaylorr @PastelMobileSuit! 🍉

@gtsiolis gtsiolis deleted the remove-git-lfs-clone-command-from-man branch October 5, 2018 14:08
@bk2204
Copy link
Member

bk2204 commented Oct 5, 2018

Sure. I'll put in a pull request to undeprecate it.

@gtsiolis
Copy link
Contributor Author

gtsiolis commented Oct 5, 2018

@bk2204 I've pushed some changes in gtsiolis@a411779. Let me know if you think this is ok to submit a pull request. If this is more complex than this, feel free to take this over.

I've also noticed the git lfs clone warning is also used in a test in t/t-clone-deprecated.sh Maybe remove this file, too? /cc @ttaylorr

@bk2204
Copy link
Member

bk2204 commented Oct 5, 2018

@gtsiolis Sorry, I didn't notice your comment in time. I just put in a pull request with identical changes at #3303.

@gtsiolis
Copy link
Contributor Author

gtsiolis commented Oct 5, 2018

No problem @bk2204! I'm glad we made identical changes.

@gtsiolis
Copy link
Contributor Author

gtsiolis commented Oct 5, 2018

I've also noticed the git lfs clone warning is also used in a test in t/t-clone-deprecated.sh Maybe remove this file, too?

@bk2204 what do you think of this?

@bk2204
Copy link
Member

bk2204 commented Oct 9, 2018

I think as long as the command itself still exists, it would be better to keep the test for the deprecated message. Of course, when we remove the command in v3.0.0, we can remove the test for the deprecated warning.

@gtsiolis
Copy link
Contributor Author

gtsiolis commented Oct 9, 2018

@bk2204 you're right, I completely forgot the command is still there. 😅

@bk2204
Copy link
Member

bk2204 commented Oct 9, 2018

Not a problem. Glad you're thinking about ways to keep things tidy.

@mloskot
Copy link
Contributor

mloskot commented Nov 14, 2018

Apologies if this is inappropriate to 'hijack' the PR, but I think this is very related.

Given that

  • git lfs clone has been deprecated
  • git clone has been improved

is this suggestion from the Tutorial still valid or should it be updated as well?

A clone will typically be slower than optimal because git clone only supports downloading
each file in serial. To achieve a faster parallel batch download, temporaily disable
git lfs then fetch files in batch

GIT_LFS_SKIP_SMUDGE=1 git clone https://github.com/username/my_lfs_repo.git destination_dir

Perhaps, for common users, the recommended way to install-configure-clone is simply to:

  1. git lfs install [--local] --force --skip-smudge
  2. git clone

Then, no more fiddling with git config --global filter.lfs or GIT_LFS_SKIP_SMUDGE=1 is required. Correct?

@ttaylorr
Copy link
Contributor

is this suggestion from the Tutorial still valid or should it be updated as well?

Ah, this should certainly be updated.

@bk2204
Copy link
Member

bk2204 commented Nov 15, 2018

I've fixed that text so it's now accurate. Thanks for pointing it out!

@mloskot
Copy link
Contributor

mloskot commented Nov 15, 2018

Thank you!

chrisd8088 added a commit that referenced this pull request Mar 3, 2020
Add a number of newer and plumbing commands to the main Git LFS
man page, if they were not listed there, except for git-lfs-clone(1)
which is deprecated per 67723dd and #3301.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants