|
|
@ -218,6 +218,9 @@ export const addall = async (files: fileStatusResult[]) => { |
|
|
|
|
|
|
|
|
|
|
|
export const add = async (filepath: addInput) => { |
|
|
|
export const add = async (filepath: addInput) => { |
|
|
|
try { |
|
|
|
try { |
|
|
|
|
|
|
|
if(typeof filepath.filepath === "string") { |
|
|
|
|
|
|
|
filepath.filepath = removeSlash(filepath.filepath) |
|
|
|
|
|
|
|
} |
|
|
|
await plugin.call('dgitApi', 'add', filepath); |
|
|
|
await plugin.call('dgitApi', 'add', filepath); |
|
|
|
sendToGitLog({ |
|
|
|
sendToGitLog({ |
|
|
|
type: 'success', |
|
|
|
type: 'success', |
|
|
|