@@ -266,11 +266,6 @@ func Push(repoPath, remote, branch string, opts ...PushOptions) error {
266266 return err
267267}
268268
269- // Deprecated: Use Push instead.
270- func RepoPush (repoPath , remote , branch string , opts ... PushOptions ) error {
271- return Push (repoPath , remote , branch , opts ... )
272- }
273-
274269// Push pushes local changes to given remote and branch for the repository.
275270func (r * Repository ) Push (remote , branch string , opts ... PushOptions ) error {
276271 return Push (r .path , remote , branch , opts ... )
@@ -311,11 +306,6 @@ func Checkout(repoPath, branch string, opts ...CheckoutOptions) error {
311306 return err
312307}
313308
314- // Deprecated: Use Checkout instead.
315- func RepoCheckout (repoPath , branch string , opts ... CheckoutOptions ) error {
316- return Checkout (repoPath , branch , opts ... )
317- }
318-
319309// Checkout checks out to given branch for the repository.
320310func (r * Repository ) Checkout (branch string , opts ... CheckoutOptions ) error {
321311 return Checkout (r .path , branch , opts ... )
@@ -352,11 +342,6 @@ func Reset(repoPath, rev string, opts ...ResetOptions) error {
352342 return err
353343}
354344
355- // Deprecated: Use Reset instead.
356- func RepoReset (repoPath , rev string , opts ... ResetOptions ) error {
357- return Reset (repoPath , rev , opts ... )
358- }
359-
360345// Reset resets working tree to given revision for the repository.
361346func (r * Repository ) Reset (rev string , opts ... ResetOptions ) error {
362347 return Reset (r .path , rev , opts ... )
@@ -388,11 +373,6 @@ func Move(repoPath, src, dst string, opts ...MoveOptions) error {
388373 return err
389374}
390375
391- // Deprecated: Use Move instead.
392- func RepoMove (repoPath , src , dst string , opts ... MoveOptions ) error {
393- return Move (repoPath , src , dst , opts ... )
394- }
395-
396376// Move moves a file, a directory, or a symlink file or directory from source to
397377// destination for the repository.
398378func (r * Repository ) Move (src , dst string , opts ... MoveOptions ) error {
@@ -435,11 +415,6 @@ func Add(repoPath string, opts ...AddOptions) error {
435415 return err
436416}
437417
438- // Deprecated: Use Add instead.
439- func RepoAdd (repoPath string , opts ... AddOptions ) error {
440- return Add (repoPath , opts ... )
441- }
442-
443418// Add adds local changes to index for the repository.
444419func (r * Repository ) Add (opts ... AddOptions ) error {
445420 return Add (r .path , opts ... )
@@ -486,11 +461,6 @@ func CreateCommit(repoPath string, committer *Signature, message string, opts ..
486461 return err
487462}
488463
489- // Deprecated: Use CreateCommit instead.
490- func RepoCommit (repoPath string , committer * Signature , message string , opts ... CommitOptions ) error {
491- return CreateCommit (repoPath , committer , message , opts ... )
492- }
493-
494464// Commit commits local changes with given author, committer and message for the
495465// repository.
496466func (r * Repository ) Commit (committer * Signature , message string , opts ... CommitOptions ) error {
@@ -562,11 +532,6 @@ func ShowNameStatus(repoPath, rev string, opts ...ShowNameStatusOptions) (*NameS
562532 return fileStatus , nil
563533}
564534
565- // Deprecated: Use ShowNameStatus instead.
566- func RepoShowNameStatus (repoPath , rev string , opts ... ShowNameStatusOptions ) (* NameStatus , error ) {
567- return ShowNameStatus (repoPath , rev , opts ... )
568- }
569-
570535// ShowNameStatus returns name status of given revision of the repository.
571536func (r * Repository ) ShowNameStatus (rev string , opts ... ShowNameStatusOptions ) (* NameStatus , error ) {
572537 return ShowNameStatus (r .path , rev , opts ... )
@@ -675,11 +640,6 @@ func CountObjects(repoPath string, opts ...CountObjectsOptions) (*CountObject, e
675640 return countObject , nil
676641}
677642
678- // Deprecated: Use CountObjects instead.
679- func RepoCountObjects (repoPath string , opts ... CountObjectsOptions ) (* CountObject , error ) {
680- return CountObjects (repoPath , opts ... )
681- }
682-
683643// CountObjects returns disk usage report of the repository.
684644func (r * Repository ) CountObjects (opts ... CountObjectsOptions ) (* CountObject , error ) {
685645 return CountObjects (r .path , opts ... )
@@ -711,11 +671,6 @@ func Fsck(repoPath string, opts ...FsckOptions) error {
711671 return err
712672}
713673
714- // Deprecated: Use Fsck instead.
715- func RepoFsck (repoPath string , opts ... FsckOptions ) error {
716- return Fsck (repoPath , opts ... )
717- }
718-
719674// Fsck verifies the connectivity and validity of the objects in the database
720675// for the repository.
721676func (r * Repository ) Fsck (opts ... FsckOptions ) error {
0 commit comments