Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export metadatas #445

Merged
merged 7 commits into from
Sep 25, 2013
Merged

Export metadatas #445

merged 7 commits into from
Sep 25, 2013

Conversation

pmiossec
Copy link
Member

Add an option --export to export the metadatas (workitems, reviewers,...) in the commit message
(like they were before checkin in tfs) :

git-tfs-work-item: 1245 associate
git-tfs-code-reviewer: paul
git-tfs-security-reviewer: arthur
git-tfs-performance-reviewer: john

Just have to use the command :
git filter-branch -f --msg-filter 'sed "s/^git-tfs-id:.*$//g"' -- --all

and you will be able to import back in another tfs or somewhere else ;)

PS : if there is branches, merge commit will never be checkinable in another tfs server

@sc68cal
Copy link
Contributor

sc68cal commented Sep 23, 2013

👍

@@ -57,6 +58,8 @@ public virtual OptionSet OptionSet
v => BareBranch = v },
{ "force", "Force fetch of tfs changesets when there is ahead commits (ahead commits will be lost!)",
v => ForceFetchBare = v != null },
{ "x|export", "Export metadatas",
v => ExportMetadatas = v != null },
// { "r|revision=",
// v => RevisionToFetch = Convert.ToInt32(v) },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you're in the neighborhood can you remove this commented out option?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done ;)

sc68cal added a commit that referenced this pull request Sep 25, 2013
@sc68cal sc68cal merged commit 7366dd8 into git-tfs:master Sep 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants