mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-09-20 23:30:02 +08:00
Add a GitResetLast command
This way we can revert the last committed change.
This commit is contained in:
@ -150,6 +150,19 @@ Future gitPush(String folderName) async {
|
||||
}
|
||||
}
|
||||
|
||||
Future gitResetLast(String folderName) async {
|
||||
print("Going to git reset last");
|
||||
try {
|
||||
await _platform.invokeMethod('gitResetLast', {
|
||||
'folderName': folderName,
|
||||
});
|
||||
print("Done");
|
||||
} on PlatformException catch (e) {
|
||||
print("gitResetLast Failed: '${e.message}'.");
|
||||
throw createGitException(e.message);
|
||||
}
|
||||
}
|
||||
|
||||
Future gitCommit({
|
||||
@required String gitFolder,
|
||||
@required String authorName,
|
||||
|
Reference in New Issue
Block a user