stg import now extracts Message-ID header
[stgit.git] / stgit / __init__.py
blob3c84c0858940accdf9c8a324f4955bb5229b8762
1 __copyright__ = """
2 Copyright (C) 2005, Catalin Marinas <catalin.marinas@gmail.com>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License version 2 as
6 published by the Free Software Foundation.
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
13 You should have received a copy of the GNU General Public License
14 along with this program; if not, see http://www.gnu.org/licenses/.
15 """
18 def get_version():
19 # Importing stgit._version will determine the version by running git
20 # commands when stgit is run from its own git repository. That expense
21 # is avoided by only doing the import when get_version() is called.
22 import stgit._version
24 return stgit._version.__version__