Expand comments in git.View (#188)

This commit is contained in:
Pieter Noordhuis 2023-01-27 16:17:44 +01:00 committed by GitHub
parent eb76e5d3e8
commit 035fb6514d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -16,9 +16,12 @@ import (
// We use this functionality to synchronize files from a path nested
// in a repository while respecting the repository's ignore rules.
type View struct {
// repo points to the repository that contains the directory
// that this view is anchored at.
repo *Repository
// targetPath is the relative path within the repository we care about.
// targetPath is the relative path to the directory tree that this
// view is anchored at (with respect to the repository root).
// For example: "." or "a/b".
targetPath string
}