@@ -25,7 +25,6 @@ const { checkIgnoreTask } = require('./lib/tasks/check-ignore');
2525const { checkIsRepoTask } = require ( './lib/tasks/check-is-repo' ) ;
2626const { cloneTask, cloneMirrorTask } = require ( './lib/tasks/clone' ) ;
2727const { cleanWithOptionsTask, isCleanOptionsArray } = require ( './lib/tasks/clean' ) ;
28- const { commitTask } = require ( './lib/tasks/commit' ) ;
2928const { diffSummaryTask } = require ( './lib/tasks/diff' ) ;
3029const { fetchTask } = require ( './lib/tasks/fetch' ) ;
3130const { moveTask } = require ( './lib/tasks/move' ) ;
@@ -283,33 +282,6 @@ Git.prototype.addAnnotatedTag = function (tagName, tagMessage) {
283282 ) ;
284283} ;
285284
286- /**
287- * Check out a tag or revision, any number of additional arguments can be passed to the `git checkout` command
288- * by supplying either a string or array of strings as the first argument.
289- */
290- Git . prototype . checkout = function ( ) {
291- const commands = [ 'checkout' , ...getTrailingOptions ( arguments , true ) ] ;
292- return this . _runTask ( straightThroughStringTask ( commands ) , trailingFunctionArgument ( arguments ) ) ;
293- } ;
294-
295- /**
296- * Check out a remote branch
297- *
298- * @param {string } branchName name of branch
299- * @param {string } startPoint (e.g origin/development)
300- * @param {Function } [then]
301- */
302- Git . prototype . checkoutBranch = function ( branchName , startPoint , then ) {
303- return this . checkout ( [ '-b' , branchName , startPoint ] , trailingFunctionArgument ( arguments ) ) ;
304- } ;
305-
306- /**
307- * Check out a local branch
308- */
309- Git . prototype . checkoutLocalBranch = function ( branchName , then ) {
310- return this . checkout ( [ '-b' , branchName ] , trailingFunctionArgument ( arguments ) ) ;
311- } ;
312-
313285/**
314286 * Delete a local branch
315287 */
0 commit comments