Skip to content

Commit af052bc

Browse files
committed
Add getHistories()
1 parent 87fc471 commit af052bc

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

denops/dpp/base/protocol.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ export type GetDateFromRevisionArguments<Params extends BaseParams> =
7272
rev: string;
7373
};
7474

75+
export type GetHistoriesArguments<Params extends BaseParams> =
76+
& BaseProtocolArguments<Params>
77+
& {
78+
start?: string;
79+
end?: string;
80+
};
81+
7582
export type Command = {
7683
command: string;
7784
args: string[];
@@ -153,6 +160,12 @@ export abstract class BaseProtocol<Params extends BaseParams> {
153160
return Promise.resolve(null);
154161
}
155162

163+
getHistories(
164+
_args: GetHistoriesArguments<Params>,
165+
): Promise<string[]> {
166+
return Promise.resolve([]);
167+
}
168+
156169
abstract params(): Params;
157170
}
158171

doc/dpp.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,10 @@ getDateFromRevision (function) (Optional)
952952
getDiffCommand (function) (Optional)
953953
Called to get updated diff command.
954954

955+
*dpp-protocol-attribute-getHistories*
956+
getHistories (function) (Optional)
957+
Called to get histories.
958+
955959
*dpp-protocol-attribute-getLogCommand*
956960
getLogCommand (function) (Optional)
957961
Called to get repository synchronous command.

0 commit comments

Comments
 (0)