Unconventional method of using Git
I am working on a specific use case of automating code mgmt using git. I am not certain if git has this feature built in, or there is a product out there that does this already. I appreciate if you could point me towards the right direction.
The idea is simple, and the process as follows: (I understand this may not be the conventional way of using Git, and is a specific use case)
A scheduler commits the code from a shared-repo between users to GitLab (using scheduler user_id)
The day after users go through the applied changes to the code (using a GUI interface) and pick the changes made by them,
A scriptcode modifies the commit to adjust the Git-Blame output based on users' entires in step 2 (this step may require breaking the commit to multiple commits and changing user Author)
Any help would be highly appreciated.
I did use 'git_blame_someone_else' code and a combination of rebasingcherrypicking, however, I thought I might be trying too hard and this could be a build in feature in Git. (breaking commits and changing code Author)
git gitlab blame git-blame
add a comment |
I am working on a specific use case of automating code mgmt using git. I am not certain if git has this feature built in, or there is a product out there that does this already. I appreciate if you could point me towards the right direction.
The idea is simple, and the process as follows: (I understand this may not be the conventional way of using Git, and is a specific use case)
A scheduler commits the code from a shared-repo between users to GitLab (using scheduler user_id)
The day after users go through the applied changes to the code (using a GUI interface) and pick the changes made by them,
A scriptcode modifies the commit to adjust the Git-Blame output based on users' entires in step 2 (this step may require breaking the commit to multiple commits and changing user Author)
Any help would be highly appreciated.
I did use 'git_blame_someone_else' code and a combination of rebasingcherrypicking, however, I thought I might be trying too hard and this could be a build in feature in Git. (breaking commits and changing code Author)
git gitlab blame git-blame
add a comment |
I am working on a specific use case of automating code mgmt using git. I am not certain if git has this feature built in, or there is a product out there that does this already. I appreciate if you could point me towards the right direction.
The idea is simple, and the process as follows: (I understand this may not be the conventional way of using Git, and is a specific use case)
A scheduler commits the code from a shared-repo between users to GitLab (using scheduler user_id)
The day after users go through the applied changes to the code (using a GUI interface) and pick the changes made by them,
A scriptcode modifies the commit to adjust the Git-Blame output based on users' entires in step 2 (this step may require breaking the commit to multiple commits and changing user Author)
Any help would be highly appreciated.
I did use 'git_blame_someone_else' code and a combination of rebasingcherrypicking, however, I thought I might be trying too hard and this could be a build in feature in Git. (breaking commits and changing code Author)
git gitlab blame git-blame
I am working on a specific use case of automating code mgmt using git. I am not certain if git has this feature built in, or there is a product out there that does this already. I appreciate if you could point me towards the right direction.
The idea is simple, and the process as follows: (I understand this may not be the conventional way of using Git, and is a specific use case)
A scheduler commits the code from a shared-repo between users to GitLab (using scheduler user_id)
The day after users go through the applied changes to the code (using a GUI interface) and pick the changes made by them,
A scriptcode modifies the commit to adjust the Git-Blame output based on users' entires in step 2 (this step may require breaking the commit to multiple commits and changing user Author)
Any help would be highly appreciated.
I did use 'git_blame_someone_else' code and a combination of rebasingcherrypicking, however, I thought I might be trying too hard and this could be a build in feature in Git. (breaking commits and changing code Author)
git gitlab blame git-blame
git gitlab blame git-blame
asked Jan 2 at 9:19
iprimoiprimo
11
11
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
No, git does not have this feature built in. The closest I can think of is interactive rebasing, which can let you break one commit into several (and even give them different authors), but it's meant to be a manual process, not something you would generally do from a script.
To be fair, it seems horrendously inefficient to combine different people's commits into one, only to have to break those commits apart later. What I'd actually suggest doing is reexamining and questioning the reasons that the default git workflow, where different people's commits stay as separate commits, doesn't work for you. I suspect you may find a better solution to that higher-level problem such that you don't have to do what you're describing.
add a comment |
About step 1 : how are modifications entered in the shared-repo ? how is the code "committed" from the shared-repo to gitlab ?
gitlab
being a git server, it is perfectly suited for hosting a copy of your shared repo ;the standard way to use a shared repo among users is : each user creates commits, and then push these commits to the shared repo ; using this standard workflow, each user is registered as the author of the commit they created ;
you can perfecty have several shared repositories, sharing stuff between repositories is genrally done by pushing or pulling from one copy to the other ; pusing and pulling do not alter the author of shared commits, so no extra action should be taken to have modifications mentionning their initial author.
Among points 1 2 and 3 above, which one do not match your current workflow ?
Could you please explain your use case in more details ?
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54003822%2funconventional-method-of-using-git%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
No, git does not have this feature built in. The closest I can think of is interactive rebasing, which can let you break one commit into several (and even give them different authors), but it's meant to be a manual process, not something you would generally do from a script.
To be fair, it seems horrendously inefficient to combine different people's commits into one, only to have to break those commits apart later. What I'd actually suggest doing is reexamining and questioning the reasons that the default git workflow, where different people's commits stay as separate commits, doesn't work for you. I suspect you may find a better solution to that higher-level problem such that you don't have to do what you're describing.
add a comment |
No, git does not have this feature built in. The closest I can think of is interactive rebasing, which can let you break one commit into several (and even give them different authors), but it's meant to be a manual process, not something you would generally do from a script.
To be fair, it seems horrendously inefficient to combine different people's commits into one, only to have to break those commits apart later. What I'd actually suggest doing is reexamining and questioning the reasons that the default git workflow, where different people's commits stay as separate commits, doesn't work for you. I suspect you may find a better solution to that higher-level problem such that you don't have to do what you're describing.
add a comment |
No, git does not have this feature built in. The closest I can think of is interactive rebasing, which can let you break one commit into several (and even give them different authors), but it's meant to be a manual process, not something you would generally do from a script.
To be fair, it seems horrendously inefficient to combine different people's commits into one, only to have to break those commits apart later. What I'd actually suggest doing is reexamining and questioning the reasons that the default git workflow, where different people's commits stay as separate commits, doesn't work for you. I suspect you may find a better solution to that higher-level problem such that you don't have to do what you're describing.
No, git does not have this feature built in. The closest I can think of is interactive rebasing, which can let you break one commit into several (and even give them different authors), but it's meant to be a manual process, not something you would generally do from a script.
To be fair, it seems horrendously inefficient to combine different people's commits into one, only to have to break those commits apart later. What I'd actually suggest doing is reexamining and questioning the reasons that the default git workflow, where different people's commits stay as separate commits, doesn't work for you. I suspect you may find a better solution to that higher-level problem such that you don't have to do what you're describing.
answered Jan 2 at 9:35
David ZDavid Z
96.3k18200239
96.3k18200239
add a comment |
add a comment |
About step 1 : how are modifications entered in the shared-repo ? how is the code "committed" from the shared-repo to gitlab ?
gitlab
being a git server, it is perfectly suited for hosting a copy of your shared repo ;the standard way to use a shared repo among users is : each user creates commits, and then push these commits to the shared repo ; using this standard workflow, each user is registered as the author of the commit they created ;
you can perfecty have several shared repositories, sharing stuff between repositories is genrally done by pushing or pulling from one copy to the other ; pusing and pulling do not alter the author of shared commits, so no extra action should be taken to have modifications mentionning their initial author.
Among points 1 2 and 3 above, which one do not match your current workflow ?
Could you please explain your use case in more details ?
add a comment |
About step 1 : how are modifications entered in the shared-repo ? how is the code "committed" from the shared-repo to gitlab ?
gitlab
being a git server, it is perfectly suited for hosting a copy of your shared repo ;the standard way to use a shared repo among users is : each user creates commits, and then push these commits to the shared repo ; using this standard workflow, each user is registered as the author of the commit they created ;
you can perfecty have several shared repositories, sharing stuff between repositories is genrally done by pushing or pulling from one copy to the other ; pusing and pulling do not alter the author of shared commits, so no extra action should be taken to have modifications mentionning their initial author.
Among points 1 2 and 3 above, which one do not match your current workflow ?
Could you please explain your use case in more details ?
add a comment |
About step 1 : how are modifications entered in the shared-repo ? how is the code "committed" from the shared-repo to gitlab ?
gitlab
being a git server, it is perfectly suited for hosting a copy of your shared repo ;the standard way to use a shared repo among users is : each user creates commits, and then push these commits to the shared repo ; using this standard workflow, each user is registered as the author of the commit they created ;
you can perfecty have several shared repositories, sharing stuff between repositories is genrally done by pushing or pulling from one copy to the other ; pusing and pulling do not alter the author of shared commits, so no extra action should be taken to have modifications mentionning their initial author.
Among points 1 2 and 3 above, which one do not match your current workflow ?
Could you please explain your use case in more details ?
About step 1 : how are modifications entered in the shared-repo ? how is the code "committed" from the shared-repo to gitlab ?
gitlab
being a git server, it is perfectly suited for hosting a copy of your shared repo ;the standard way to use a shared repo among users is : each user creates commits, and then push these commits to the shared repo ; using this standard workflow, each user is registered as the author of the commit they created ;
you can perfecty have several shared repositories, sharing stuff between repositories is genrally done by pushing or pulling from one copy to the other ; pusing and pulling do not alter the author of shared commits, so no extra action should be taken to have modifications mentionning their initial author.
Among points 1 2 and 3 above, which one do not match your current workflow ?
Could you please explain your use case in more details ?
answered Jan 2 at 10:05
LeGECLeGEC
14.4k2259
14.4k2259
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54003822%2funconventional-method-of-using-git%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown