mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 12:49:08 -04:00
24 lines
467 B
Dart
24 lines
467 B
Dart
import 'oid.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}}';
|
|
}
|
|
}
|