MCPcopy Index your code

hub / github.com/steveukx/git-js / functions

Functions659 in github.com/steveukx/git-js

↓ 287 callersFunctioncloseWithSuccess
(message = '')
simple-git/test/unit/__fixtures__/child-processes.ts:46
↓ 211 callersFunctionassertExecutedCommands
(...commands: string[])
simple-git/test/unit/__fixtures__/expectations.ts:22
↓ 132 callersFunctionlike
(what: Partial<T>)
packages/test-utils/src/like.ts:1
↓ 111 callersMethodraw
* Executes any command against the git binary.
simple-git/typings/simple-git.d.ts:721
↓ 98 callersFunctionparseArgv
(...tokens: readonly unknown[])
packages/argv-parser/src/args/parse-argv.ts:13
↓ 96 callersMethodpush
(task: SimpleGitTask<R>)
simple-git/src/lib/types/index.ts:53
↓ 72 callersMethod_runTask
(task: SimpleGitTask<T>, then?: SimpleGitTaskCallback<T>)
simple-git/src/lib/simple-git-api.ts:32
↓ 62 callersFunctionassertGitError
( errorInstance: Error | unknown, message: string | RegExp, errorConstructor: any = GitError )
packages/test-utils/src/expectations.ts:14
↓ 60 callersFunctiontrailingFunctionArgument
( args: unknown[] | IArguments | unknown, includeNoop = true )
simple-git/src/lib/utils/task-options.ts:80
↓ 50 callersMethodinit
* Initialize a git repo
simple-git/typings/simple-git.d.ts:48
↓ 43 callersMethodlog
* Show commit logs from `HEAD` to the first commit. * If provided between `options.from` and `options.to` tags or branch. * * You can prov
simple-git/typings/simple-git.d.ts:655
↓ 36 callersFunctioncreateTestContext
()
packages/test-utils/src/create-test-context.ts:55
↓ 35 callersMethodcheckIsRepo
* Validates that the current working directory is a valid git repo file path. * * To make a more specific assertion of the repo, add the `acti
simple-git/typings/simple-git.d.ts:297
↓ 35 callersFunctiongetTrailingOptions
( args: IArguments, initialPrimitive = 0, objectOnly = false )
simple-git/src/lib/utils/task-options.ts:41
↓ 32 callersFunctionwait
()
simple-git/src/lib/plugins/timout-plugin.ts:17
↓ 31 callersMethodadd
* Adds one or more files to source control
simple-git/typings/simple-git.d.ts:19
↓ 31 callersFunctionasNumber
(source: string | null | undefined, onNaN = 0)
simple-git/src/lib/utils/util.ts:140
↓ 29 callersFunctionparseStatusSummary
(text: string)
simple-git/src/lib/responses/StatusSummary.ts:156
↓ 28 callersFunctionaWriteConfig
( key: string, scope: ConfigWrite['scope'], value?: string )
packages/argv-parser/test/__fixtures__/mocks.ts:10
↓ 28 callersMethodpush
* Pushes the current committed changes to a remote, optionally specify the names of the remote and branch to use * when pushing. Supply multiple o
simple-git/typings/simple-git.d.ts:120
↓ 28 callersMethodstatus
* Show the working tree status.
simple-git/typings/simple-git.d.ts:147
↓ 27 callersMethodclean
* Deletes unwanted content from the local repo - when supplying the first argument as * an array of `CleanOptions`, the array must include one of
simple-git/typings/simple-git.d.ts:377
↓ 26 callersFunctionpathspec
(...paths: string[])
packages/args-pathspec/src/pathspec.ts:10
↓ 25 callersMethodcommit
* Commits changes in the current working directory - when specific file paths are supplied, only changes on those * files will be committed.
simple-git/typings/simple-git.d.ts:428
↓ 24 callersMethodexec
* Calls the supplied `handle` function at the next step in the chain, used to run arbitrary functions synchronously * before the next task in the
simple-git/typings/simple-git.d.ts:543
↓ 24 callersFunctionsetUpInit
({ git }: Pick<SimpleGitTestContext, 'git'>)
packages/test-utils/src/setup/setup-init.ts:7
↓ 24 callersFunctionstraightThroughStringTask
(commands: string[], trimmed = false)
simple-git/src/lib/tasks/task.ts:31
↓ 23 callersFunctionfilterType
(input: K, filter: ArgumentFilterPredicate<T>, def?: T)
simple-git/src/lib/utils/argument-filters.ts:12
↓ 22 callersMethodclone
* Clone a repository into a new directory. * * - repoPath repository url to clone e.g. https://github.com/steveukx/git-js.git * - localPa
simple-git/typings/simple-git.d.ts:411
↓ 20 callersFunctionaParsedFlag
(name: string, value?: string)
packages/argv-parser/test/__fixtures__/mocks.ts:6
↓ 19 callersMethodall
()
simple-git/src/lib/responses/ConfigList.ts:10
↓ 19 callersFunctionconfigurationErrorTask
(error: Error | string)
simple-git/src/lib/tasks/task.ts:21
↓ 19 callersMethodfile
Creates a file at the given path under the repo root with the supplied content
packages/test-utils/src/create-test-context.ts:12
↓ 19 callersMethodgrep
* Search for files matching the supplied search terms
simple-git/typings/simple-git.d.ts:611
↓ 18 callersMethodpath
Generates the path to a location within the root directory
packages/test-utils/src/create-test-context.ts:18
↓ 17 callersFunctioncloseWithError
(stack = 'CLOSING WITH ERROR', code = EXIT_CODE_ERROR)
simple-git/test/unit/__fixtures__/child-processes.ts:37
↓ 17 callersMethodon
( type: K, listener: (data: SimpleGitPluginConfig[K]) => void )
simple-git/src/lib/plugins/plugin-store.ts:15
↓ 17 callersMethodpull
* Fetch from and integrate with another repository or a local branch. In the case that the `git pull` fails with a * recognised fatal error, the e
simple-git/typings/simple-git.d.ts:687
↓ 16 callersMethodaddConfig
* Add config to local git instance for the specified `key` (eg: user.name) and value (eg: 'your name'). * Set `append` to true to append to rather
simple-git/typings/simple-git.d.ts:169
↓ 16 callersMethoddir
Creates a directory under the repo root at the given path(s)
packages/test-utils/src/create-test-context.ts:9
↓ 15 callersFunctiontest
( name: string, expected: string[], args: any, includeInitialPrimitives?: number )
simple-git/test/unit/task-options.spec.ts:31
↓ 14 callersFunctionappend
(target: T[] | Set<T>, item: T)
simple-git/src/lib/utils/util.ts:86
↓ 14 callersFunctionassertNoExecutedTasks
()
simple-git/test/unit/__fixtures__/expectations.ts:14
↓ 14 callersMethodbranch
* List all branches
simple-git/typings/simple-git.d.ts:252
↓ 14 callersFunctionstatusResponse
(branch = 'main', ...files: Array<string | (() => string)>)
simple-git/test/unit/__fixtures__/responses/status.ts:28
↓ 13 callersMethodapplyPatch
* Applies a patch to the repo
simple-git/typings/simple-git.d.ts:193
↓ 13 callersFunctionasArray
(source: T | T[])
simple-git/src/lib/utils/util.ts:124
↓ 13 callersMethoddiffSummary
* Gets a summary of the diff for files in the repo, uses the `git diff --stat` format to calculate changes. * * in order to get staged (only):
simple-git/typings/simple-git.d.ts:510
↓ 13 callersFunctionfilterHasLength
( input )
simple-git/src/lib/utils/argument-filters.ts:62
↓ 13 callersFunctionnoVulnerabilities
()
packages/argv-parser/test/__fixtures__/mocks.ts:33
↓ 13 callersFunctionparseStringResponse
( result: T, parsers: LineParser<T>[], texts: MaybeArray<string>, trim = true )
simple-git/src/lib/utils/task-parser.ts:13
↓ 13 callersFunctionparser
( indexX: PorcelainFileStatus, indexY: PorcelainFileStatus, handler: StatusLineParser )
simple-git/src/lib/responses/StatusSummary.ts:49
↓ 13 callersMethodreset
* Reset a repo. Called without arguments this is a soft reset for the whole repo, * for explicitly setting the reset mode, supply the first argume
simple-git/typings/simple-git.d.ts:846
↓ 12 callersMethodcheckout
* Checkout a tag or revision, any number of additional arguments can be passed to the `git checkout` command * by supplying either a string or arr
simple-git/typings/simple-git.d.ts:308
↓ 12 callersMethodfetch
* Updates the local working copy database with changes from the default remote repo and branch.
simple-git/typings/simple-git.d.ts:548
↓ 12 callersFunctionlogger
(name: string, logs: any)
simple-git/test/unit/__fixtures__/debug.ts:2
↓ 12 callersFunctionpreventConfigBuilder
( config: string | RegExp, category: VulnerabilityCategory, message = String(config) )
packages/argv-parser/src/vulnerabilities/detect-vulnerable-config-writes.ts:17
↓ 12 callersFunctionpreventExpandedConfigBuilder
(config: string, category: VulnerabilityCategory)
packages/argv-parser/src/vulnerabilities/detect-vulnerable-config-writes.ts:34
↓ 12 callersMethodrevparse
* Passes the supplied options to `git rev-parse` and returns the string response. Options can be either a * string array or `Options` object of op
simple-git/typings/simple-git.d.ts:880
↓ 11 callersFunctionassertNonErrorReset
(task: Promise<string>, commands: string[])
simple-git/test/unit/reset.spec.ts:77
↓ 11 callersFunctionassertSuccess
(init: InitResult, expected: Partial<InitResult>, commands: string[])
simple-git/test/unit/init.spec.ts:166
↓ 11 callersFunctioncreateFixture
(stdOut: string, stdErr = '')
simple-git/test/unit/__fixtures__/create-fixture.ts:7
↓ 11 callersMethodcwd
* Sets the working directory of the subsequent commands.
simple-git/typings/simple-git.d.ts:24
↓ 11 callersFunctionisPathSpec
(value: unknown)
packages/args-pathspec/src/pathspec.ts:16
↓ 11 callersFunctionpwnedPath
()
simple-git/test/integration/plugin.unsafe.spec.ts:11
↓ 11 callersFunctionsetUpFilesAdded
( { git, files }: SimpleGitTestContext, fileNames: string[], addSelector: string | string[] = '.',
packages/test-utils/src/setup/setup-files.ts:3
↓ 11 callersFunctiontest
(t: (done: Function) => void)
simple-git/test/unit/clean.spec.ts:236
↓ 10 callersMethodadd
( plugin: void | SimpleGitPlugin<T> | SimpleGitPlugin<T>[] )
simple-git/src/lib/plugins/plugin-store.ts:32
↓ 10 callersFunctionchildProcessEmits
( event: 'close' | 'exit', code: number, before?: () => Promise<void> )
simple-git/test/unit/git-executor.spec.ts:15
↓ 10 callersFunctionfilterPrimitives
( input: unknown, omit?: Array<'boolean' | 'string' | 'number'> )
simple-git/src/lib/utils/argument-filters.ts:25
↓ 10 callersFunctionfilterString
(input: unknown)
simple-git/src/lib/utils/argument-filters.ts:41
↓ 10 callersFunctiongrepQueryBuilder
(...params: string[])
simple-git/src/lib/tasks/grep.ts:49
↓ 10 callersFunctiononeVulnerability
(category: VulnerabilityCategory)
packages/argv-parser/test/__fixtures__/mocks.ts:29
↓ 10 callersFunctiontoLinesWithContent
(input = '', trimmed = true, separator = '\n')
simple-git/src/lib/utils/util.ts:60
↓ 10 callersFunctionwait
(timeoutOrPromise: number | Promise<unknown> = 10)
packages/test-utils/src/wait.ts:1
↓ 9 callersFunctionexpected
()
simple-git/test/unit/plugins/plugin.binary.spec.ts:82
↓ 9 callersFunctiongetDiffParser
(format = LogFormat.NONE)
simple-git/src/lib/parsers/parse-diff-summary.ts:116
↓ 9 callersMethodgetRemotes
* Gets the currently available remotes, setting the optional verbose argument to true includes additional * detail on the remotes themselves.
simple-git/typings/simple-git.d.ts:594
↓ 9 callersFunctionisPwned
()
simple-git/test/integration/plugin.unsafe.spec.ts:15
↓ 9 callersFunctionlast
(input: unknown, offset = 0)
simple-git/src/lib/utils/util.ts:48
↓ 9 callersFunctionparseBranchSummary
(stdOut: string, currentOnly = false)
simple-git/src/lib/parsers/parse-branch.ts:28
↓ 9 callersFunctionstatusCommands
(...extras: string[])
simple-git/test/unit/status.spec.ts:25
↓ 8 callersFunctionassertCommandAppended
(...things: string[])
simple-git/test/unit/log.spec.ts:601
↓ 8 callersMethoddeleteLocalBranch
* Delete one local branch. Supply the branchName as a string to return a * single `BranchDeletionSummary` instances. * * - branchName name
simple-git/typings/simple-git.d.ts:472
↓ 8 callersFunctiongivenTheTaskIsAdded
()
simple-git/test/unit/git-executor.spec.ts:46
↓ 8 callersMethodlistConfig
* Configuration values visible to git in the current working directory
simple-git/typings/simple-git.d.ts:207
↓ 8 callersFunctionmockStdOut
(changes = 2, insertions = 6, deletions = 4)
simple-git/test/unit/pull.spec.ts:206
↓ 8 callersMethodnext
()
simple-git/src/lib/runners/scheduler.ts:53
↓ 8 callersFunctionthenTheTaskHasCompleted
()
simple-git/test/unit/git-executor.spec.ts:37
↓ 8 callersMethodtoString
()
simple-git/src/lib/responses/PullSummary.ts:36
↓ 7 callersFunctionaReadConfig
(key: string, scope: ConfigRead['scope'])
packages/argv-parser/test/__fixtures__/mocks.ts:18
↓ 7 callersFunctionassertCallsTo
(...srcMocks: jest.Mock[])
simple-git/test/unit/scheduler.spec.ts:95
↓ 7 callersMethodcheckIgnore
* Check if a pathname or pathnames are excluded by .gitignore *
simple-git/typings/simple-git.d.ts:280
↓ 7 callersFunctioncreateListLogSummaryParser
( splitter = SPLITTER, fields = defaultFieldNames, logFormat = LogFormat.NONE )
simple-git/src/lib/parsers/parse-list-log-summary.ts:24
↓ 7 callersMethodcustomBinary
* Sets the path to a custom git binary, should either be `git` when there is an installation of git available on * the system path, or a fully qua
simple-git/typings/simple-git.d.ts:463
↓ 7 callersFunctionfile
(file: string, changes = 0, insertions = 0, deletions = 0)
simple-git/test/integration/log.spec.ts:61
↓ 7 callersMethodfiles
Creates many files at the given paths, each with file content based on their name
packages/test-utils/src/create-test-context.ts:15
↓ 7 callersFunctionlistConfigLine
(file: string, key: string, value: string)
simple-git/test/unit/config.spec.ts:47
↓ 7 callersFunctionlog
(this: SimpleGitApi, ...rest: unknown[])
simple-git/src/lib/tasks/log.ts:158
↓ 7 callersFunctionparseCommitResult
(stdOut: string)
simple-git/src/lib/parsers/parse-commit.ts:45
next →1–100 of 659, ranked by callers