MCPcopy
hub / github.com/diffgram/diffgram / push

Method push

frontend/src/helpers/history.ts:11–15  ·  view source on GitHub ↗
(command: CommandInterface)

Source from the content-addressed store, hash-verified

9 public redo_posible: Boolean = false;
10
11 public push(command: CommandInterface) {
12 this.undone_history = [];
13 this.history.push(command)
14 this.update_status()
15 }
16
17 public pop(): CommandInterface {
18 if (!this.undo_posible) return null;

Callers 15

add_custom_buttonFunction · 0.45
add_eventMethod · 0.45
initialize_actionsMethod · 0.45
add_actionMethod · 0.45
generate_rectsMethod · 0.45
addPointerMethod · 0.45
parseHeaderMethod · 0.45
parseMethod · 0.45
add_issue_to_listMethod · 0.45
executeCommandMethod · 0.45
has_duplicate_instancesFunction · 0.45

Calls 1

update_statusMethod · 0.95

Tested by

no test coverage detected