1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2003-2006, 2014 - TortoiseSVN
4 // Copyright (C) 2008-2014 - TortoiseGit
6 // This program is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU General Public License
8 // as published by the Free Software Foundation; either version 2
9 // of the License, or (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software Foundation,
18 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 #include "ShellUpdater.h"
24 * \ingroup TortoiseShell
25 * Displays and updates all controls on the property page. The property
26 * page itself is shown by explorer.
28 class CGitPropertyPage
31 CGitPropertyPage(const std::vector
<stdstring
> &filenames
);
32 virtual ~CGitPropertyPage();
35 * Sets the window handle.
36 * \param hwnd the handle.
38 virtual void SetHwnd(HWND hwnd
);
40 * Callback function which receives the window messages of the
41 * property page. See the Win32 API for PropertySheets for details.
43 virtual BOOL
PageProc(HWND hwnd
, UINT uMessage
, WPARAM wParam
, LPARAM lParam
);
45 const static UINT m_UpdateLastCommit
;
49 * Initializes the property page.
51 virtual void InitWorkfileView();
52 void DisplayCommit(const git_commit
* commit
, UINT hashLabel
, UINT subjectLabel
, UINT authorLabel
, UINT dateLabel
);
53 static void LogThreadEntry(void *param
);
55 void Time64ToTimeString(__time64_t time
, TCHAR
* buf
, size_t buflen
) const;
56 void PageProcOnCommand(WPARAM wParam
);
57 void RunCommand(const tstring
& command
);
60 std::vector
<stdstring
> filenames
;
62 * Were executable, assumeValid or skip-worktree flags changes