MCPcopy
hub / github.com/git-lfs/git-lfs / pointerReader

Function pointerReader

commands/command_pointer.go:154–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152}
153
154func pointerReader() (io.ReadCloser, error) {
155 if len(pointerCompare) > 0 {
156 if pointerStdin {
157 return nil, errors.New(tr.Tr.Get("cannot read from STDIN and --pointer"))
158 }
159
160 return os.Open(pointerCompare)
161 }
162
163 requireStdin(tr.Tr.Get("The --stdin flag expects a pointer file from STDIN."))
164
165 return os.Stdin, nil
166}
167
168func init() {
169 RegisterCommand("pointer", pointerCommand, func(cmd *cobra.Command) {

Callers 1

pointerCommandFunction · 0.85

Calls 2

requireStdinFunction · 0.85
GetMethod · 0.65

Tested by

no test coverage detected