commands/checkout: mark 'git lfs checkout' as deprecated
This commit is contained in:
parent
37bc00aa3e
commit
766377cdaf
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user