Atlasstian/Stash Git Api - Getting names of files modified between commit -
i'm trying create nightly process create list of files changed between last commit of previous day , current head
of branch.
i've been looking @ stash api, can found here:
https://developer.atlassian.com/static/rest/stash/3.11.3/stash-rest.html
it looks /compare/changes
, /diff
capable of accomplishing task, can them work single commit changes.
is there way expand can names of files changed between multiple commits?
ex: files between commit1
through commit10
?
i glanced @ briefly (and have odd terminology, calling these "changesets" instead of "commit" ids: make sense mercurial, not git) api does take 2 ids , need.
for instance, in example, want see happened
between commit1 through commit10
the word "between" bit suspect (because commits not linear in first place, , because introduces fencepost errors) in general, this, compare (the id of) commit1 (or parent, depending on whether counting fence posts or fence rails) against (the id of) commit10.
when doing git, rather on annoying rest api, expressed as, e.g.:
$ git diff --name-status 1fe9ca7 6631bed
which shows changed in 6631bed
vs whatever in 1fe9ca7
, which—due algebra of changesets—is sum of each changeset "between" (there slippery word again) 2 end points.
git not store these changesets; stores actual content @ each commit. changesets therefore produced on demand (by git diff
), why terminology seems bit odd. identify 2 actual commits, not changeset, , git extracts changeset.
Comments
Post a Comment