Skip to content

Commit

Permalink
Add PatchOptions.Path field.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitshur committed Apr 24, 2018
1 parent 8fdb823 commit 3418ea4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changes_revision.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ type PatchOptions struct {

// Query parameter download (e.g. /changes/.../patch?download) will suggest the browser save the patch as commitsha1.diff.base64, for later processing by command line tools.
Download bool `url:"download,omitempty"`

// If the path parameter is set, the returned content is a diff of the single file that the path refers to.
Path string `url:"path,omitempty"`
}

// GetDiff gets the diff of a file from a certain revision.
Expand Down

0 comments on commit 3418ea4

Please sign in to comment.