mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-27 22:41:41 +00:00
Move git__date_parse declaration to util.h.
This commit is contained in:
parent
2c2cde47b8
commit
8a385c0482
@ -10,7 +10,7 @@
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
#include "date.h"
|
||||
#include "util.h"
|
||||
#include "cache.h"
|
||||
#include "posix.h"
|
||||
|
||||
|
||||
14
src/date.h
14
src/date.h
@ -1,14 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2009-2012 the libgit2 contributors
|
||||
*
|
||||
* This file is part of libgit2, distributed under the GNU GPL v2 with
|
||||
* a Linking Exception. For full terms see the included COPYING file.
|
||||
*/
|
||||
#ifndef INCLUDE_date_h__
|
||||
#define INCLUDE_date_h__
|
||||
|
||||
#include "git2/types.h"
|
||||
|
||||
int git__date_parse(git_time_t *out, const char *date);
|
||||
|
||||
#endif
|
||||
@ -9,7 +9,6 @@
|
||||
|
||||
#include "common.h"
|
||||
#include "buffer.h"
|
||||
#include "date.h"
|
||||
#include "tree.h"
|
||||
|
||||
#include "git2.h"
|
||||
|
||||
10
src/util.h
10
src/util.h
@ -230,4 +230,14 @@ GIT_INLINE(bool) git__iswildcard(int c)
|
||||
*/
|
||||
extern int git__parse_bool(int *out, const char *value);
|
||||
|
||||
/*
|
||||
* Parse a string into a value as a git_time_t.
|
||||
*
|
||||
* Sample valid input:
|
||||
* - "yesterday"
|
||||
* - "July 17, 2003"
|
||||
* - "2003-7-17 08:23"
|
||||
*/
|
||||
int git__date_parse(git_time_t *out, const char *date);
|
||||
|
||||
#endif /* INCLUDE_util_h__ */
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#include "clar_libgit2.h"
|
||||
|
||||
#include "date.h"
|
||||
#include "util.h"
|
||||
|
||||
void test_date_date__overflow(void)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user