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

Tag prefix per project possible ? #5

Closed
KorsG opened this issue May 27, 2016 · 3 comments
Closed

Tag prefix per project possible ? #5

KorsG opened this issue May 27, 2016 · 3 comments

Comments

@KorsG
Copy link

KorsG commented May 27, 2016

I have a git repository with multiple VS projects that should change version independently.
Would it be possible to configure GitInfo to use tags with a certain prefix per project ?

Example:

  • root
    • ProjectA\ProjectA.csproj
      Should use git tags with prefix a- (like a-1.1.0)
    • ProjectB\ProjectB.csproj
      Should use git tags with prefix b- (like b-1.2.0)
kzu added a commit that referenced this issue May 29, 2016
This makes #5 much easier to deal with, and allows per-directory 
versioning inside a single repository.
@kzu
Copy link
Member

kzu commented May 29, 2016

It's actually much simpler. You can just have a GitInfo.txt file inside the folder of each project, and GitInfo will automatically use the "closest" one to the project being built to determine the base version.

The commit I just added also makes it so that the commit count will also be scoped to that directory.

So I instead of a prefix, you could use a different suffix/label (like 1.1.0-a and 1.2.0-b).

@KorsG
Copy link
Author

KorsG commented May 30, 2016

Thanks - just what I needed :-)

@kzu
Copy link
Member

kzu commented May 30, 2016

Closing then 👍

@kzu kzu closed this as completed May 30, 2016
@devlooped devlooped locked and limited conversation to collaborators Sep 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants