libgit2dart/lib/src/stash.dart
2021-10-08 18:34:58 +03:00

24 lines
495 B
Dart

import 'package:libgit2dart/libgit2dart.dart';
class Stash {
/// Initializes a new instance of [Stash] class.
const Stash({
required this.index,
required this.message,
required this.oid,
});
/// The position within the stash list.
final int index;
/// The stash message.
final String message;
/// The commit oid of the stashed state.
final Oid oid;
@override
String toString() {
return 'Stash{index: $index, message: $message, sha: ${oid.sha}}';
}
}