Updater updates a package to a new upstream version. If the package at pkgPath differs from the upstream ref it was fetch from, then Update will attempt to create a patch from the upstream source version and upstream update version.
| 32 | // If the package at pkgPath differs from the upstream ref it was fetch from, then Update will |
| 33 | // attempt to create a patch from the upstream source version and upstream update version. |
| 34 | type GitPatchUpdater struct { |
| 35 | UpdateOptions |
| 36 | |
| 37 | // patch is a patch which can be applied with 'git am' |
| 38 | patch string |
| 39 | |
| 40 | // toCommit is resolved commit for toRef |
| 41 | toCommit string |
| 42 | |
| 43 | // gitRunner is used to run git commands |
| 44 | gitRunner *gitutil.GitRunner |
| 45 | |
| 46 | // packageRef is the RemoteDirectory/ToRef -- for sub directory versioning |
| 47 | packageRef string |
| 48 | } |
| 49 | |
| 50 | func (u GitPatchUpdater) Update(options UpdateOptions) error { |
| 51 | u.UpdateOptions = options |
nothing calls this directly
no outgoing calls
no test coverage detected