diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-25 12:06:13 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-25 12:06:13 +0000 |
commit | 8f1f6b374b69fd6356bdc5561d56f5ca9db9fadd (patch) | |
tree | 9b81a74772b269cf3d851ed2d29f97c31985b98a /app/assets/javascripts/repository/utils/commit.js | |
parent | dbd50b6e203994cdb393494faa8fc1b2fb406487 (diff) | |
download | gitlab-ce-8f1f6b374b69fd6356bdc5561d56f5ca9db9fadd.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/repository/utils/commit.js')
-rw-r--r-- | app/assets/javascripts/repository/utils/commit.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/repository/utils/commit.js b/app/assets/javascripts/repository/utils/commit.js index 6c204b57b37..3973798605d 100644 --- a/app/assets/javascripts/repository/utils/commit.js +++ b/app/assets/javascripts/repository/utils/commit.js @@ -1,11 +1,12 @@ // eslint-disable-next-line import/prefer-default-export -export function normalizeData(data, extra = () => {}) { +export function normalizeData(data, path, extra = () => {}) { return data.map(d => ({ sha: d.commit.id, message: d.commit.message, committedDate: d.commit.committed_date, commitPath: d.commit_path, fileName: d.file_name, + filePath: `${path}/${d.file_name}`, type: d.type, __typename: 'LogTreeCommit', ...extra(d), |