MCPcopy Create free account
hub / github.com/JordanCoin/codemap / sessionStartTime

Function sessionStartTime

cmd/hooks.go:1287–1292  ·  view source on GitHub ↗

sessionStartTime estimates when this session started from daemon events.

(state *watch.State)

Source from the content-addressed store, hash-verified

1285
1286// sessionStartTime estimates when this session started from daemon events.
1287func sessionStartTime(state *watch.State) time.Time {
1288 if state != nil && len(state.RecentEvents) > 0 {
1289 return state.RecentEvents[0].Time
1290 }
1291 return time.Now()
1292}
1293
1294func resolveHandoffBaseRef(root string) string {
1295 if remoteDefault, ok := gitSymbolicRef(root, "refs/remotes/origin/HEAD"); ok && remoteDefault != "" {

Callers 1

writeSessionHandoffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected