{"record":{"id":"da11e2e31b476a99","repo":"pcottle/learnGitBranching","slug":"biglogstr","errorCode":null,"errorMessage":"bigLogStr","messagePattern":"bigLogStr","errorType":"exception","errorClass":"CommandResult","httpStatus":null,"severity":"info","filePath":"src/js/git/index.js","lineNumber":3136,"sourceCode":"    msg: msg\n  });\n};\n\nGitEngine.prototype.logWithout = function(ref, omitBranch) {\n  // slice off the ^branch\n  omitBranch = omitBranch.slice(1);\n  this.log(ref, Graph.getUpstreamSet(this, omitBranch));\n};\n\nGitEngine.prototype.revlist = function(refs) {\n  var range = new RevisionRange(this, refs);\n\n  // now go through and collect ids\n  var bigLogStr = range.formatRevisions(function(c) {\n    return c.id + '\\n';\n  });\n\n  throw new CommandResult({\n    msg: bigLogStr\n  });\n};\n\nGitEngine.prototype.log = function(refs) {\n  var range = new RevisionRange(this, refs);\n\n  // now go through and collect logs\n  var bigLogStr = range.formatRevisions(function(c) {\n    return c.getLogEntry();\n  });\n\n  throw new CommandResult({\n    msg: bigLogStr\n  });\n};\n\nGitEngine.prototype.getCommonAncestor = function(ancestor, cousin, dontThrow) {","sourceCodeStart":3118,"sourceCodeEnd":3154,"githubUrl":"https://github.com/pcottle/learnGitBranching/blob/5b09d0ff9678cad164f5a7488a279a44f90d7256/src/js/git/index.js#L3118-L3154","documentation":"Not a failure: logWithout builds output for 'git log <ref> ^<omitBranch>' by having RevisionRange.formatRevisions emit one commit id per line; the concatenated string is returned by throwing a CommandResult.","triggerScenarios":"Successful git log ref ^other execution; every revision in the range contributes 'id\\n'.","commonSituations":"Normal usage; expected output.","solutions":["No fix needed","Parse msg lines if you need the commit id list"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"try { engine.logWithout(ref, omit); } catch (e) { if (e instanceof CommandResult) { var ids = e.msg.trim().split('\\n'); } else throw e; }","preventionTips":["Pass a valid ref and an existing omitBranch to get a non-empty range"],"tags":["git","log","command-result","revision-range"],"backgroundTag":"command-result-output","analyzedSha":"5b09d0ff9678cad164f5a7488a279a44f90d7256","analyzedAt":"2026-08-27T13:53:49.057Z","schemaVersion":2},"datasetVersion":"2026-08-27T19:17:21.184Z"}