Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Jan 2, 2022
1 parent 14b382f commit e43951c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/history/data/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ const shouldRemoveFromHistory = async function (force) {
return confirmed
}

// Get a previous rawResult by delta
// Find the target result using the main delta.
// Then, list all history results, after applying the `since` delta.
export const getFromHistory = async function (config) {
const metadata = await listMetadata(config.cwd)
const metadataA = await applyMainDelta(metadata, config)
Expand All @@ -56,6 +57,7 @@ export const getFromHistory = async function (config) {
return { rawResult, history: historyA }
}

// List all history results, after applying the `since` delta.
export const listHistory = async function (config) {
const metadata = await listMetadata(config.cwd)
const metadataA = await applySinceDelta(metadata, config)
Expand Down

0 comments on commit e43951c

Please sign in to comment.