1 //
2 //	aegis - project change supervisor
3 //	Copyright (C) 2003, 2005-2008 Peter Miller
4 //
5 //	This program is free software; you can redistribute it and/or modify
6 //	it under the terms of the GNU General Public License as published by
7 //	the Free Software Foundation; either version 3 of the License, or
8 //	(at your option) any later version.
9 //
10 //	This program is distributed in the hope that it will be useful,
11 //	but WITHOUT ANY WARRANTY; without even the implied warranty of
12 //	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 //	GNU General Public License for more details.
14 //
15 //	You should have received a copy of the GNU General Public License
16 //	along with this program. If not, see
17 //	<http://www.gnu.org/licenses/>.
18 //
19 
20 #ifndef LIBAEGIS_CHANGE_DIRECTORY_H
21 #define LIBAEGIS_CHANGE_DIRECTORY_H
22 
23 #include <libaegis/change.h>
24 
25 /**
26   * The change_directory_get function is used to get a directory for use
27   * with the current command.  If the change is between being_developed
28   * and awaiting_integration, the change development directory will be
29   * returned.  If the change is being_integrated, the change integration
30   * directory will be returned.  Otherwise, the project baseline will
31   * be returned, unless the branch has been closed, in which case the
32   * branch tree will be ascended (possibly all the way to the trunk)
33   * looking for a branch baseline which is still being developed.
34   */
35 struct string_ty *change_directory_get(change::pointer cp, int resolve);
36 
37 #endif // LIBAEGIS_CHANGE_DIRECTORY_H
38