1 | import * as resp from './response';
|
2 | import * as types from './types';
|
3 | import { GitError } from './errors';
|
4 |
|
5 | export interface SimpleGitFactory {
|
6 | (baseDir?: string, options?: Partial<types.SimpleGitOptions>): SimpleGit;
|
7 |
|
8 | (baseDir: string): SimpleGit;
|
9 |
|
10 | (options: Partial<types.SimpleGitOptions>): SimpleGit;
|
11 | }
|
12 |
|
13 | export type Response<T> = SimpleGit & Promise<T>;
|
14 |
|
15 | export interface SimpleGitBase {
|
16 | |
17 |
|
18 |
|
19 | add(files: string | string[], callback?: types.SimpleGitTaskCallback<string>): Response<string>;
|
20 |
|
21 | |
22 |
|
23 |
|
24 | cwd(
|
25 | directory: { path: string; root?: boolean },
|
26 | callback?: types.SimpleGitTaskCallback<string>
|
27 | ): Response<string>;
|
28 |
|
29 | cwd<path extends string>(
|
30 | directory: path,
|
31 | callback?: types.SimpleGitTaskCallback<path>
|
32 | ): Response<path>;
|
33 |
|
34 | |
35 |
|
36 |
|
37 | hashObject(path: string, callback?: types.SimpleGitTaskCallback): Response<string>;
|
38 |
|
39 | hashObject(
|
40 | path: string,
|
41 | write?: boolean,
|
42 | callback?: types.SimpleGitTaskCallback
|
43 | ): Response<string>;
|
44 |
|
45 | |
46 |
|
47 |
|
48 | init(
|
49 | bare: boolean,
|
50 | options?: types.TaskOptions,
|
51 | callback?: types.SimpleGitTaskCallback<resp.InitResult>
|
52 | ): Response<resp.InitResult>;
|
53 |
|
54 | init(
|
55 | bare: boolean,
|
56 | callback?: types.SimpleGitTaskCallback<resp.InitResult>
|
57 | ): Response<resp.InitResult>;
|
58 |
|
59 | init(
|
60 | options?: types.TaskOptions,
|
61 | callback?: types.SimpleGitTaskCallback<resp.InitResult>
|
62 | ): Response<resp.InitResult>;
|
63 |
|
64 | init(callback?: types.SimpleGitTaskCallback<resp.InitResult>): Response<resp.InitResult>;
|
65 |
|
66 | |
67 |
|
68 |
|
69 |
|
70 |
|
71 |
|
72 |
|
73 |
|
74 |
|
75 |
|
76 |
|
77 |
|
78 | merge(
|
79 | options: types.TaskOptions,
|
80 | callback?: types.SimpleGitTaskCallback<resp.MergeResult>
|
81 | ): Response<resp.MergeResult>;
|
82 |
|
83 | |
84 |
|
85 |
|
86 |
|
87 | mergeFromTo<E extends GitError>(
|
88 | remote: string,
|
89 | branch: string,
|
90 | options?: types.TaskOptions,
|
91 | callback?: types.SimpleGitTaskCallback<resp.MergeResult, E>
|
92 | ): Response<resp.MergeResult>;
|
93 |
|
94 | mergeFromTo<E extends GitError>(
|
95 | remote: string,
|
96 | branch: string,
|
97 | callback?: types.SimpleGitTaskCallback<resp.MergeResult, E>
|
98 | ): Response<resp.MergeResult>;
|
99 |
|
100 | |
101 |
|
102 |
|
103 |
|
104 |
|
105 |
|
106 |
|
107 |
|
108 |
|
109 |
|
110 |
|
111 |
|
112 |
|
113 |
|
114 | outputHandler(handler: types.outputHandler | void): this;
|
115 |
|
116 | |
117 |
|
118 |
|
119 |
|
120 | push(
|
121 | remote?: string,
|
122 | branch?: string,
|
123 | options?: types.TaskOptions,
|
124 | callback?: types.SimpleGitTaskCallback<resp.PushResult>
|
125 | ): Response<resp.PushResult>;
|
126 |
|
127 | push(
|
128 | options?: types.TaskOptions,
|
129 | callback?: types.SimpleGitTaskCallback<resp.PushResult>
|
130 | ): Response<resp.PushResult>;
|
131 |
|
132 | push(callback?: types.SimpleGitTaskCallback<resp.PushResult>): Response<resp.PushResult>;
|
133 |
|
134 | |
135 |
|
136 |
|
137 | stash(
|
138 | options?: types.TaskOptions,
|
139 | callback?: types.SimpleGitTaskCallback<string>
|
140 | ): Response<string>;
|
141 |
|
142 | stash(callback?: types.SimpleGitTaskCallback<string>): Response<string>;
|
143 |
|
144 | |
145 |
|
146 |
|
147 | status(
|
148 | options?: types.TaskOptions,
|
149 | callback?: types.SimpleGitTaskCallback<resp.StatusResult>
|
150 | ): Response<resp.StatusResult>;
|
151 |
|
152 | status(callback?: types.SimpleGitTaskCallback<resp.StatusResult>): Response<resp.StatusResult>;
|
153 | }
|
154 |
|
155 | export interface SimpleGit extends SimpleGitBase {
|
156 | |
157 |
|
158 |
|
159 | addAnnotatedTag(
|
160 | tagName: string,
|
161 | tagMessage: string,
|
162 | callback?: types.SimpleGitTaskCallback<{ name: string }>
|
163 | ): Response<{ name: string }>;
|
164 |
|
165 | |
166 |
|
167 |
|
168 |
|
169 | addConfig(
|
170 | key: string,
|
171 | value: string,
|
172 | append?: boolean,
|
173 | scope?: keyof typeof types.GitConfigScope,
|
174 | callback?: types.SimpleGitTaskCallback<string>
|
175 | ): Response<string>;
|
176 |
|
177 | addConfig(
|
178 | key: string,
|
179 | value: string,
|
180 | append?: boolean,
|
181 | callback?: types.SimpleGitTaskCallback<string>
|
182 | ): Response<string>;
|
183 |
|
184 | addConfig(
|
185 | key: string,
|
186 | value: string,
|
187 | callback?: types.SimpleGitTaskCallback<string>
|
188 | ): Response<string>;
|
189 |
|
190 | |
191 |
|
192 |
|
193 | applyPatch(
|
194 | patches: string | string[],
|
195 | options: types.TaskOptions<types.ApplyOptions>,
|
196 | callback?: types.SimpleGitTaskCallback<string>
|
197 | ): Response<string>;
|
198 |
|
199 | applyPatch(
|
200 | patches: string | string[],
|
201 | callback?: types.SimpleGitTaskCallback<string>
|
202 | ): Response<string>;
|
203 |
|
204 | |
205 |
|
206 |
|
207 | listConfig(
|
208 | scope: keyof typeof types.GitConfigScope,
|
209 | callback?: types.SimpleGitTaskCallback<resp.ConfigListSummary>
|
210 | ): Response<resp.ConfigListSummary>;
|
211 |
|
212 | listConfig(
|
213 | callback?: types.SimpleGitTaskCallback<resp.ConfigListSummary>
|
214 | ): Response<resp.ConfigListSummary>;
|
215 |
|
216 | |
217 |
|
218 |
|
219 |
|
220 |
|
221 |
|
222 |
|
223 | addRemote(
|
224 | remoteName: string,
|
225 | remoteRepo: string,
|
226 | options?: types.TaskOptions,
|
227 | callback?: types.SimpleGitTaskCallback<string>
|
228 | ): Response<string>;
|
229 |
|
230 | addRemote(
|
231 | remoteName: string,
|
232 | remoteRepo: string,
|
233 | callback?: types.SimpleGitTaskCallback<string>
|
234 | ): Response<string>;
|
235 |
|
236 | |
237 |
|
238 |
|
239 | addTag(
|
240 | name: string,
|
241 | callback?: types.SimpleGitTaskCallback<{ name: string }>
|
242 | ): Response<{ name: string }>;
|
243 |
|
244 | |
245 |
|
246 |
|
247 | binaryCatFile(options: string[], callback?: types.SimpleGitTaskCallback<any>): Response<any>;
|
248 |
|
249 | |
250 |
|
251 |
|
252 | branch(
|
253 | options?: types.TaskOptions,
|
254 | callback?: types.SimpleGitTaskCallback<resp.BranchSummary>
|
255 | ): Response<resp.BranchSummary>;
|
256 |
|
257 | |
258 |
|
259 |
|
260 | branchLocal(
|
261 | callback?: types.SimpleGitTaskCallback<resp.BranchSummary>
|
262 | ): Response<resp.BranchSummary>;
|
263 |
|
264 | |
265 |
|
266 |
|
267 |
|
268 |
|
269 |
|
270 |
|
271 |
|
272 | catFile(options: string[], callback?: types.SimpleGitTaskCallback<string>): Response<string>;
|
273 |
|
274 | catFile(callback?: types.SimpleGitTaskCallback<string>): Response<string>;
|
275 |
|
276 | |
277 |
|
278 |
|
279 |
|
280 | checkIgnore(
|
281 | pathNames: string[],
|
282 | callback?: types.SimpleGitTaskCallback<string[]>
|
283 | ): Response<string[]>;
|
284 |
|
285 | checkIgnore(path: string, callback?: types.SimpleGitTaskCallback<string[]>): Response<string[]>;
|
286 |
|
287 | |
288 |
|
289 |
|
290 |
|
291 |
|
292 |
|
293 |
|
294 |
|
295 |
|
296 |
|
297 | checkIsRepo(
|
298 | action?: types.CheckRepoActions,
|
299 | callback?: types.SimpleGitTaskCallback<boolean>
|
300 | ): Response<boolean>;
|
301 |
|
302 | checkIsRepo(callback?: types.SimpleGitTaskCallback<boolean>): Response<boolean>;
|
303 |
|
304 | |
305 |
|
306 |
|
307 |
|
308 | checkout(
|
309 | what: string,
|
310 | options?: types.TaskOptions,
|
311 | callback?: types.SimpleGitTaskCallback<string>
|
312 | ): Response<string>;
|
313 |
|
314 | checkout(what: string, callback?: types.SimpleGitTaskCallback<string>): Response<string>;
|
315 |
|
316 | checkout(
|
317 | options?: types.TaskOptions,
|
318 | callback?: types.SimpleGitTaskCallback<string>
|
319 | ): Response<string>;
|
320 |
|
321 | |
322 |
|
323 |
|
324 |
|
325 |
|
326 |
|
327 | checkoutBranch(
|
328 | branchName: string,
|
329 | startPoint: string,
|
330 | callback?: types.SimpleGitTaskCallback<void>
|
331 | ): Response<void>;
|
332 |
|
333 | checkoutBranch(
|
334 | branchName: string,
|
335 | startPoint: string,
|
336 | options?: types.TaskOptions,
|
337 | callback?: types.SimpleGitTaskCallback<void>
|
338 | ): Response<void>;
|
339 |
|
340 | |
341 |
|
342 |
|
343 | checkoutLatestTag(
|
344 | branchName: string,
|
345 | startPoint: string,
|
346 | callback?: types.SimpleGitTaskCallback<void>
|
347 | ): Response<void>;
|
348 |
|
349 | |
350 |
|
351 |
|
352 | checkoutLocalBranch(
|
353 | branchName: string,
|
354 | callback?: types.SimpleGitTaskCallback<void>
|
355 | ): Response<void>;
|
356 |
|
357 | checkoutLocalBranch(
|
358 | branchName: string,
|
359 | options?: types.TaskOptions,
|
360 | callback?: types.SimpleGitTaskCallback<void>
|
361 | ): Response<void>;
|
362 |
|
363 | |
364 |
|
365 |
|
366 |
|
367 |
|
368 |
|
369 |
|
370 |
|
371 |
|
372 |
|
373 |
|
374 |
|
375 |
|
376 |
|
377 | clean(
|
378 | args: types.CleanOptions[],
|
379 | options?: types.TaskOptions,
|
380 | callback?: types.SimpleGitTaskCallback<resp.CleanSummary>
|
381 | ): Response<resp.CleanSummary>;
|
382 |
|
383 | clean(
|
384 | mode: types.CleanMode | string,
|
385 | options?: types.TaskOptions,
|
386 | callback?: types.SimpleGitTaskCallback<resp.CleanSummary>
|
387 | ): Response<resp.CleanSummary>;
|
388 |
|
389 | clean(
|
390 | mode: types.CleanMode | string,
|
391 | callback?: types.SimpleGitTaskCallback<resp.CleanSummary>
|
392 | ): Response<resp.CleanSummary>;
|
393 |
|
394 | clean(options?: types.TaskOptions): Response<resp.CleanSummary>;
|
395 |
|
396 | clean(callback?: types.SimpleGitTaskCallback<resp.CleanSummary>): Response<resp.CleanSummary>;
|
397 |
|
398 | |
399 |
|
400 |
|
401 | clearQueue(): this;
|
402 |
|
403 | |
404 |
|
405 |
|
406 |
|
407 |
|
408 |
|
409 |
|
410 | clone(
|
411 | repoPath: string,
|
412 | localPath: string,
|
413 | options?: types.TaskOptions,
|
414 | callback?: types.SimpleGitTaskCallback<string>
|
415 | ): Response<string>;
|
416 |
|
417 | clone(
|
418 | repoPath: string,
|
419 | options?: types.TaskOptions,
|
420 | callback?: types.SimpleGitTaskCallback<string>
|
421 | ): Response<string>;
|
422 |
|
423 | |
424 |
|
425 |
|
426 |
|
427 | commit(
|
428 | message: string | string[],
|
429 | files?: string | string[],
|
430 | options?: types.Options,
|
431 | callback?: types.SimpleGitTaskCallback<resp.CommitResult>
|
432 | ): Response<resp.CommitResult>;
|
433 |
|
434 | commit(
|
435 | message: string | string[],
|
436 | options?: types.TaskOptions,
|
437 | callback?: types.SimpleGitTaskCallback<resp.CommitResult>
|
438 | ): Response<resp.CommitResult>;
|
439 |
|
440 | commit(
|
441 | message: string | string[],
|
442 | files?: string | string[],
|
443 | callback?: types.SimpleGitTaskCallback<resp.CommitResult>
|
444 | ): Response<resp.CommitResult>;
|
445 |
|
446 | commit(
|
447 | message: string | string[],
|
448 | callback?: types.SimpleGitTaskCallback<resp.CommitResult>
|
449 | ): Response<resp.CommitResult>;
|
450 |
|
451 | |
452 |
|
453 |
|
454 | countObjects(
|
455 | callback?: types.SimpleGitTaskCallback<types.VersionResult>
|
456 | ): Response<types.CountObjectsResult>;
|
457 |
|
458 | |
459 |
|
460 |
|
461 |
|
462 | customBinary(command: Exclude<types.SimpleGitOptions['binary'], undefined>): this;
|
463 |
|
464 | |
465 |
|
466 |
|
467 |
|
468 |
|
469 |
|
470 |
|
471 | deleteLocalBranch(
|
472 | branchName: string,
|
473 | forceDelete?: boolean,
|
474 | callback?: types.SimpleGitTaskCallback<resp.BranchSingleDeleteResult>
|
475 | ): Response<resp.BranchSingleDeleteResult>;
|
476 |
|
477 | deleteLocalBranch(
|
478 | branchName: string,
|
479 | callback?: types.SimpleGitTaskCallback<resp.BranchSingleDeleteResult>
|
480 | ): Response<resp.BranchSingleDeleteResult>;
|
481 |
|
482 | |
483 |
|
484 |
|
485 |
|
486 |
|
487 |
|
488 |
|
489 |
|
490 | deleteLocalBranches(
|
491 | branchNames: string[],
|
492 | forceDelete?: boolean,
|
493 | callback?: types.SimpleGitTaskCallback<resp.BranchMultiDeleteResult>
|
494 | ): Response<resp.BranchMultiDeleteResult>;
|
495 |
|
496 | |
497 |
|
498 |
|
499 | diff(
|
500 | options?: types.TaskOptions,
|
501 | callback?: types.SimpleGitTaskCallback<string>
|
502 | ): Response<string>;
|
503 |
|
504 | |
505 |
|
506 |
|
507 |
|
508 |
|
509 | diffSummary(
|
510 | command: string | number,
|
511 | options: types.TaskOptions,
|
512 | callback?: types.SimpleGitTaskCallback<resp.DiffResult>
|
513 | ): Response<resp.DiffResult>;
|
514 |
|
515 | diffSummary(
|
516 | command: string | number,
|
517 | callback?: types.SimpleGitTaskCallback<resp.DiffResult>
|
518 | ): Response<resp.DiffResult>;
|
519 |
|
520 | diffSummary(
|
521 | options: types.TaskOptions,
|
522 | callback?: types.SimpleGitTaskCallback<resp.DiffResult>
|
523 | ): Response<resp.DiffResult>;
|
524 |
|
525 | diffSummary(callback?: types.SimpleGitTaskCallback<resp.DiffResult>): Response<resp.DiffResult>;
|
526 |
|
527 | |
528 |
|
529 |
|
530 |
|
531 |
|
532 |
|
533 |
|
534 | env(name: string, value: string): this;
|
535 |
|
536 | env(env: object): this;
|
537 |
|
538 | |
539 |
|
540 |
|
541 |
|
542 | exec(handle: () => void): Response<void>;
|
543 |
|
544 | |
545 |
|
546 |
|
547 | fetch(
|
548 | remote: string,
|
549 | branch: string,
|
550 | options?: types.TaskOptions,
|
551 | callback?: types.SimpleGitTaskCallback<resp.FetchResult>
|
552 | ): Response<resp.FetchResult>;
|
553 |
|
554 | fetch(
|
555 | remote: string,
|
556 | branch: string,
|
557 | callback?: types.SimpleGitTaskCallback<resp.FetchResult>
|
558 | ): Response<resp.FetchResult>;
|
559 |
|
560 | fetch(
|
561 | remote: string,
|
562 | options?: types.TaskOptions,
|
563 | callback?: types.SimpleGitTaskCallback<resp.FetchResult>
|
564 | ): Response<resp.FetchResult>;
|
565 |
|
566 | fetch(
|
567 | options?: types.TaskOptions,
|
568 | callback?: types.SimpleGitTaskCallback<resp.FetchResult>
|
569 | ): Response<resp.FetchResult>;
|
570 |
|
571 | fetch(callback?: types.SimpleGitTaskCallback<resp.FetchResult>): Response<resp.FetchResult>;
|
572 |
|
573 | |
574 |
|
575 |
|
576 | firstCommit(callback?: types.SimpleGitTaskCallback<string>): Response<string>;
|
577 |
|
578 | |
579 |
|
580 |
|
581 |
|
582 |
|
583 | getConfig(
|
584 | key: string,
|
585 | scope?: keyof typeof types.GitConfigScope,
|
586 | callback?: types.SimpleGitTaskCallback<string>
|
587 | ): Response<resp.ConfigGetResult>;
|
588 |
|
589 | |
590 |
|
591 |
|
592 |
|
593 | getRemotes(
|
594 | callback?: types.SimpleGitTaskCallback<types.RemoteWithoutRefs[]>
|
595 | ): Response<types.RemoteWithoutRefs[]>;
|
596 |
|
597 | getRemotes(
|
598 | verbose?: false,
|
599 | callback?: types.SimpleGitTaskCallback<types.RemoteWithoutRefs[]>
|
600 | ): Response<types.RemoteWithoutRefs[]>;
|
601 |
|
602 | getRemotes(
|
603 | verbose: true,
|
604 | callback?: types.SimpleGitTaskCallback<types.RemoteWithRefs[]>
|
605 | ): Response<types.RemoteWithRefs[]>;
|
606 |
|
607 | |
608 |
|
609 |
|
610 | grep(
|
611 | searchTerm: string | types.GitGrepQuery,
|
612 | callback?: types.SimpleGitTaskCallback<resp.GrepResult>
|
613 | ): Response<resp.GrepResult>;
|
614 |
|
615 | grep(
|
616 | searchTerm: string | types.GitGrepQuery,
|
617 | options?: types.TaskOptions,
|
618 | callback?: types.SimpleGitTaskCallback<resp.GrepResult>
|
619 | ): Response<resp.GrepResult>;
|
620 |
|
621 | |
622 |
|
623 |
|
624 |
|
625 | listRemote(
|
626 | args?: types.TaskOptions,
|
627 | callback?: types.SimpleGitTaskCallback<string>
|
628 | ): Response<string>;
|
629 |
|
630 | |
631 |
|
632 |
|
633 |
|
634 |
|
635 |
|
636 |
|
637 |
|
638 |
|
639 |
|
640 |
|
641 |
|
642 |
|
643 |
|
644 |
|
645 |
|
646 |
|
647 |
|
648 |
|
649 |
|
650 |
|
651 |
|
652 |
|
653 |
|
654 | log<T = types.DefaultLogFields>(
|
655 | options?: types.TaskOptions | types.LogOptions<T>,
|
656 | callback?: types.SimpleGitTaskCallback<resp.LogResult<T>>
|
657 | ): Response<resp.LogResult<T>>;
|
658 |
|
659 | |
660 |
|
661 |
|
662 |
|
663 |
|
664 |
|
665 | mirror(
|
666 | repoPath: string,
|
667 | localPath: string,
|
668 | callback?: types.SimpleGitTaskCallback<string>
|
669 | ): Response<string>;
|
670 |
|
671 | |
672 |
|
673 |
|
674 |
|
675 |
|
676 | mv(
|
677 | from: string | string[],
|
678 | to: string,
|
679 | callback?: types.SimpleGitTaskCallback<resp.MoveSummary>
|
680 | ): Response<resp.MoveSummary>;
|
681 |
|
682 | |
683 |
|
684 |
|
685 |
|
686 | pull(
|
687 | remote?: string,
|
688 | branch?: string,
|
689 | options?: types.TaskOptions,
|
690 | callback?: types.SimpleGitTaskCallback<resp.PullResult>
|
691 | ): Response<resp.PullResult>;
|
692 |
|
693 | pull(
|
694 | options?: types.TaskOptions,
|
695 | callback?: types.SimpleGitTaskCallback<resp.PullResult>
|
696 | ): Response<resp.PullResult>;
|
697 |
|
698 | pull(callback?: types.SimpleGitTaskCallback<resp.PullResult>): Response<resp.PullResult>;
|
699 |
|
700 | |
701 |
|
702 |
|
703 |
|
704 | pushTags(
|
705 | remote: string,
|
706 | options?: types.TaskOptions,
|
707 | callback?: types.SimpleGitTaskCallback<resp.PushResult>
|
708 | ): Response<resp.PushResult>;
|
709 |
|
710 | pushTags(
|
711 | options?: types.TaskOptions,
|
712 | callback?: types.SimpleGitTaskCallback<resp.PushResult>
|
713 | ): Response<resp.PushResult>;
|
714 |
|
715 | pushTags(callback?: types.SimpleGitTaskCallback<resp.PushResult>): Response<resp.PushResult>;
|
716 |
|
717 | |
718 |
|
719 |
|
720 | raw(
|
721 | commands: string | string[] | types.TaskOptions,
|
722 | callback?: types.SimpleGitTaskCallback<string>
|
723 | ): Response<string>;
|
724 |
|
725 | raw(
|
726 | options: types.TaskOptions,
|
727 | callback?: types.SimpleGitTaskCallback<string>
|
728 | ): Response<string>;
|
729 |
|
730 | raw(...commands: string[]): Response<string>;
|
731 |
|
732 |
|
733 | raw(
|
734 | a: string,
|
735 | options: types.TaskOptions,
|
736 | callback?: types.SimpleGitTaskCallback<string>
|
737 | ): Response<string>;
|
738 |
|
739 | raw(
|
740 | a: string,
|
741 | b: string,
|
742 | options: types.TaskOptions,
|
743 | callback?: types.SimpleGitTaskCallback<string>
|
744 | ): Response<string>;
|
745 |
|
746 | raw(
|
747 | a: string,
|
748 | b: string,
|
749 | c: string,
|
750 | options: types.TaskOptions,
|
751 | callback?: types.SimpleGitTaskCallback<string>
|
752 | ): Response<string>;
|
753 |
|
754 | raw(
|
755 | a: string,
|
756 | b: string,
|
757 | c: string,
|
758 | d: string,
|
759 | options: types.TaskOptions,
|
760 | callback?: types.SimpleGitTaskCallback<string>
|
761 | ): Response<string>;
|
762 |
|
763 | raw(
|
764 | a: string,
|
765 | b: string,
|
766 | c: string,
|
767 | d: string,
|
768 | e: string,
|
769 | options: types.TaskOptions,
|
770 | callback?: types.SimpleGitTaskCallback<string>
|
771 | ): Response<string>;
|
772 |
|
773 |
|
774 | raw(a: string, callback?: types.SimpleGitTaskCallback<string>): Response<string>;
|
775 |
|
776 | raw(a: string, b: string, callback?: types.SimpleGitTaskCallback<string>): Response<string>;
|
777 |
|
778 | raw(
|
779 | a: string,
|
780 | b: string,
|
781 | c: string,
|
782 | callback?: types.SimpleGitTaskCallback<string>
|
783 | ): Response<string>;
|
784 |
|
785 | raw(
|
786 | a: string,
|
787 | b: string,
|
788 | c: string,
|
789 | d: string,
|
790 | callback?: types.SimpleGitTaskCallback<string>
|
791 | ): Response<string>;
|
792 |
|
793 | raw(
|
794 | a: string,
|
795 | b: string,
|
796 | c: string,
|
797 | d: string,
|
798 | e: string,
|
799 | callback?: types.SimpleGitTaskCallback<string>
|
800 | ): Response<string>;
|
801 |
|
802 | |
803 |
|
804 |
|
805 |
|
806 | rebase(
|
807 | options?: types.TaskOptions,
|
808 | callback?: types.SimpleGitTaskCallback<string>
|
809 | ): Response<string>;
|
810 |
|
811 | rebase(callback?: types.SimpleGitTaskCallback<string>): Response<string>;
|
812 |
|
813 | |
814 |
|
815 |
|
816 | remote(
|
817 | options: string[],
|
818 | callback?: types.SimpleGitTaskCallback<void | string>
|
819 | ): Response<void | string>;
|
820 |
|
821 | |
822 |
|
823 |
|
824 |
|
825 |
|
826 | removeRemote(remoteName: string, callback?: types.SimpleGitTaskCallback<void>): Response<void>;
|
827 |
|
828 | |
829 |
|
830 |
|
831 |
|
832 |
|
833 |
|
834 |
|
835 |
|
836 |
|
837 |
|
838 |
|
839 |
|
840 |
|
841 |
|
842 |
|
843 |
|
844 |
|
845 | reset(
|
846 | mode: types.ResetMode,
|
847 | options?: types.TaskOptions<types.ResetOptions>,
|
848 | callback?: types.SimpleGitTaskCallback<string>
|
849 | ): Response<string>;
|
850 |
|
851 | reset(mode: types.ResetMode, callback?: types.SimpleGitTaskCallback<string>): Response<string>;
|
852 |
|
853 | reset(
|
854 | options?: types.TaskOptions<types.ResetOptions>,
|
855 | callback?: types.SimpleGitTaskCallback<string>
|
856 | ): Response<string>;
|
857 |
|
858 | |
859 |
|
860 |
|
861 |
|
862 |
|
863 | revert(
|
864 | commit: String,
|
865 | options?: types.TaskOptions,
|
866 | callback?: types.SimpleGitTaskCallback<void>
|
867 | ): Response<void>;
|
868 |
|
869 | revert(commit: String, callback?: types.SimpleGitTaskCallback<void>): Response<void>;
|
870 |
|
871 | |
872 |
|
873 |
|
874 |
|
875 |
|
876 |
|
877 |
|
878 |
|
879 | revparse(
|
880 | option: string,
|
881 | options?: types.TaskOptions,
|
882 | callback?: types.SimpleGitTaskCallback<string>
|
883 | ): Response<string>;
|
884 |
|
885 | revparse(
|
886 | options?: types.TaskOptions,
|
887 | callback?: types.SimpleGitTaskCallback<string>
|
888 | ): Response<string>;
|
889 |
|
890 | |
891 |
|
892 |
|
893 | rm(paths: string | string[], callback?: types.SimpleGitTaskCallback<void>): Response<void>;
|
894 |
|
895 | |
896 |
|
897 |
|
898 |
|
899 | rmKeepLocal(
|
900 | paths: string | string[],
|
901 | callback?: types.SimpleGitTaskCallback<void>
|
902 | ): Response<void>;
|
903 |
|
904 | |
905 |
|
906 |
|
907 | show(
|
908 | option: string | types.TaskOptions,
|
909 | callback?: types.SimpleGitTaskCallback<string>
|
910 | ): Response<string>;
|
911 |
|
912 | show(callback?: types.SimpleGitTaskCallback<string>): Response<string>;
|
913 |
|
914 | showBuffer(option: string | types.TaskOptions): Response<Buffer>;
|
915 |
|
916 | |
917 |
|
918 |
|
919 |
|
920 |
|
921 |
|
922 |
|
923 |
|
924 |
|
925 |
|
926 |
|
927 |
|
928 |
|
929 | silent(silence?: boolean): this;
|
930 |
|
931 | |
932 |
|
933 |
|
934 | stashList(
|
935 | options?: types.TaskOptions,
|
936 | callback?: types.SimpleGitTaskCallback<resp.LogResult>
|
937 | ): Response<resp.LogResult>;
|
938 |
|
939 | stashList(callback?: types.SimpleGitTaskCallback<resp.LogResult>): Response<resp.LogResult>;
|
940 |
|
941 | |
942 |
|
943 |
|
944 | subModule(
|
945 | options?: types.TaskOptions,
|
946 | callback?: types.SimpleGitTaskCallback<string>
|
947 | ): Response<string>;
|
948 |
|
949 | |
950 |
|
951 |
|
952 | submoduleAdd(
|
953 | repo: string,
|
954 | path: string,
|
955 | callback?: types.SimpleGitTaskCallback<string>
|
956 | ): Response<string>;
|
957 |
|
958 | |
959 |
|
960 |
|
961 | submoduleInit(
|
962 | moduleName: string,
|
963 | options?: types.TaskOptions,
|
964 | callback?: types.SimpleGitTaskCallback<string>
|
965 | ): Response<string>;
|
966 |
|
967 | submoduleInit(
|
968 | moduleName: string,
|
969 | callback?: types.SimpleGitTaskCallback<string>
|
970 | ): Response<string>;
|
971 |
|
972 | submoduleInit(
|
973 | options?: types.TaskOptions,
|
974 | callback?: types.SimpleGitTaskCallback<string>
|
975 | ): Response<string>;
|
976 |
|
977 | submoduleInit(callback?: types.SimpleGitTaskCallback<string>): Response<string>;
|
978 |
|
979 | |
980 |
|
981 |
|
982 | submoduleUpdate(
|
983 | moduleName: string,
|
984 | options?: types.TaskOptions,
|
985 | callback?: types.SimpleGitTaskCallback<string>
|
986 | ): Response<string>;
|
987 |
|
988 | submoduleUpdate(
|
989 | moduleName: string,
|
990 | callback?: types.SimpleGitTaskCallback<string>
|
991 | ): Response<string>;
|
992 |
|
993 | submoduleUpdate(
|
994 | options?: types.TaskOptions,
|
995 | callback?: types.SimpleGitTaskCallback<string>
|
996 | ): Response<string>;
|
997 |
|
998 | submoduleUpdate(callback?: types.SimpleGitTaskCallback<string>): Response<string>;
|
999 |
|
1000 | |
1001 |
|
1002 |
|
1003 |
|
1004 |
|
1005 |
|
1006 | tag(
|
1007 | options?: types.TaskOptions,
|
1008 | callback?: types.SimpleGitTaskCallback<string>
|
1009 | ): Response<string>;
|
1010 |
|
1011 | |
1012 |
|
1013 |
|
1014 | tags(
|
1015 | options?: types.TaskOptions,
|
1016 | callback?: types.SimpleGitTaskCallback<resp.TagResult>
|
1017 | ): Response<resp.TagResult>;
|
1018 |
|
1019 | tags(callback?: types.SimpleGitTaskCallback<resp.TagResult>): Response<resp.TagResult>;
|
1020 |
|
1021 | |
1022 |
|
1023 |
|
1024 | updateServerInfo(callback?: types.SimpleGitTaskCallback<string>): Response<string>;
|
1025 |
|
1026 | |
1027 |
|
1028 |
|
1029 | version(
|
1030 | callback?: types.SimpleGitTaskCallback<types.VersionResult>
|
1031 | ): Response<types.VersionResult>;
|
1032 | }
|