You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@rcjsuen - perhaps Commit's API returns an array of Diffs, but that's not what this issue is about.
the issue here is other API entries (namely Diff.treeToTree and Tree#diff) that are either poorly documented or flat out fail to return their declared return type (i.e. DiffList).
@rcjsuen i see. well, the reason it works is that it calls a different API than the ones this issue regards.
in my case, the diff-commits example implementation was not working at the time (perhaps due to other reasons). i will edit the main comment accordingly, as this seems not to break this example after all.
Activity
eliranmal commentedon Aug 24, 2017
here's a code snippet, to put it in context:
mariecl commentedon Sep 5, 2017
I am facing the same issue with very similar code.
rcjsuen commentedon Sep 6, 2017
I can run
diff-commit.jsjust fine so I don't think it's broken.Commit'sgetDifffunction will return aDiff[]so there isn't a problem there.eliranmal commentedon Oct 10, 2017
@rcjsuen - perhaps
Commit's API returns an array ofDiffs, but that's not what this issue is about.the issue here is other API entries (namely
Diff.treeToTreeandTree#diff) that are either poorly documented or flat out fail to return their declared return type (i.e.DiffList).rcjsuen commentedon Oct 10, 2017
@eliranmal In your original comment, you mentioned:
I was merely trying to clarify that the example is not exactly broken as it runs just fine. Perhaps it is misleading but it does work and run.
eliranmal commentedon Oct 26, 2017
@rcjsuen i see. well, the reason it works is that it calls a different API than the ones this issue regards.
in my case, the diff-commits example implementation was not working at the time (perhaps due to other reasons). i will edit the main comment accordingly, as this seems not to break this example after all.
thanx for the clarification :)