commands/checkout: mark 'git lfs checkout' as deprecated

This commit is contained in:
Taylor Blau 2018-06-08 15:56:49 -05:00
parent 37bc00aa3e
commit 766377cdaf
2 changed files with 12 additions and 0 deletions

@ -3,6 +3,7 @@ package commands
import (
"fmt"
"os"
"strings"
"github.com/git-lfs/git-lfs/filepathfilter"
"github.com/git-lfs/git-lfs/git"
@ -14,6 +15,15 @@ import (
func checkoutCommand(cmd *cobra.Command, args []string) {
requireInRepo()
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"))
ref, err := git.CurrentRef()
if err != nil {
Panic(err, "Could not checkout")

@ -7,6 +7,8 @@ git-lfs-checkout(1) -- Update working copy with file content if available
## DESCRIPTION
This command is deprecated, and should be replaced with `git checkout`.
Try to ensure that the working copy contains file content for Git LFS objects
for the current ref, if the object data is available. Does not download any
content, see git-lfs-fetch(1) for that.