File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- " pretty-quick " : patch
2
+ " pretty-quick " : minor
3
3
---
4
4
5
- Replace ` execa ` with ` tinyexec `
5
+ feat: replace ` execa ` with ` tinyexec `
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export const detect = (directory: string) => {
43
43
: gitWorkTreeDirectory
44
44
}
45
45
46
- const runGit = async ( directory : string , args : string [ ] ) =>
46
+ const runGit = ( directory : string , args : string [ ] ) =>
47
47
exec ( 'git' , args , {
48
48
nodeOptions : {
49
49
cwd : directory ,
@@ -118,6 +118,5 @@ export const getUnstagedChangedFiles = (directory: string) => {
118
118
return getChangedFiles ( directory , null , false )
119
119
}
120
120
121
- export const stageFile = async ( directory : string , file : string ) => {
122
- await runGit ( directory , [ 'add' , file ] )
123
- }
121
+ export const stageFile = ( directory : string , file : string ) =>
122
+ runGit ( directory , [ 'add' , file ] )
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export const detect = (directory: string) => {
15
15
}
16
16
}
17
17
18
- const runHg = async ( directory : string , args : string [ ] ) =>
18
+ const runHg = ( directory : string , args : string [ ] ) =>
19
19
exec ( 'hg' , args , {
20
20
nodeOptions : {
21
21
cwd : directory ,
@@ -58,6 +58,5 @@ export const getChangedFiles = async (
58
58
59
59
export const getUnstagedChangedFiles = ( ) => [ ]
60
60
61
- export const stageFile = async ( directory : string , file : string ) => {
62
- await runHg ( directory , [ 'add' , file ] )
63
- }
61
+ export const stageFile = ( directory : string , file : string ) =>
62
+ runHg ( directory , [ 'add' , file ] )
You can’t perform that action at this time.
0 commit comments