summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/repo/stores/mutations/branch.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/repo/stores/mutations/branch.js')
-rw-r--r--app/assets/javascripts/repo/stores/mutations/branch.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/assets/javascripts/repo/stores/mutations/branch.js b/app/assets/javascripts/repo/stores/mutations/branch.js
new file mode 100644
index 00000000000..d8229e8a620
--- /dev/null
+++ b/app/assets/javascripts/repo/stores/mutations/branch.js
@@ -0,0 +1,9 @@
+import * as types from '../mutation_types';
+
+export default {
+ [types.SET_CURRENT_BRANCH](state, currentBranch) {
+ Object.assign(state, {
+ currentBranch,
+ });
+ },
+};