Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for statLocal (0.08 sec)

  1. src/cmd/go/internal/modfetch/codehost/vcs.go

    	statLocal     func(rev, remote string) []string                                                   // cmd to stat local rev
    	parseStat     func(rev, out string) (*RevInfo, error)                                             // cmd to parse output of statLocal
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:50:24 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modfetch/codehost/git.go

    func (r *gitRepo) stat(ctx context.Context, rev string) (info *RevInfo, err error) {
    	if r.local {
    		return r.statLocal(ctx, rev, rev)
    	}
    
    	// Fast path: maybe rev is a hash we already have locally.
    	didStatLocal := false
    	if len(rev) >= minHashDigits && len(rev) <= 40 && AllHex(rev) {
    		if info, err := r.statLocal(ctx, rev, rev); err == nil {
    			return info, nil
    		}
    		didStatLocal = true
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 22:10:38 UTC 2024
    - 27.4K bytes
    - Viewed (0)
Back to top