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

バージョン番号付与方法について #100

Open
Echos opened this issue Oct 9, 2012 · 1 comment
Open

バージョン番号付与方法について #100

Echos opened this issue Oct 9, 2012 · 1 comment

Comments

@Echos
Copy link
Collaborator

Echos commented Oct 9, 2012

「今、どの機能まで組み込まれている?」がちょっと管理しにくくなってきたので、
フッタかどこかにバージョン番号を付与したいとおもいますが、どういった管理方法がありますかね?

【バージョン番号に関して】
1・バージョン番号付与を実施する。(いつかはリリースノートなどと対比できるようにする?)
2・git のふってる管理番号「af3d2ec」とかが記述されていればOK。

【ソースコードにバージョン番号を挿入する方法に関して】
方法がちょっとわかりませんでした…

@tdtds
Copy link
Member

tdtds commented Oct 9, 2012

ちょっとスマートではないけど一案としては、バージョンファイルをインクリメントするコマンドを用意して、それをコミット前に必ず実行するルールにする。で、pre-commitフックを使うと実行忘れを防止できる。

http://www.humbug.in/docs/pro-git-book-ja/git-%E3%83%95%E3%83%83%E3%82%AF.html

挿入先はユーザから見える必要はないので、HTMLヘッダのmetaタグかなんかで良いかと。

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

No branches or pull requests

2 participants