Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
8a385c04
Commit
8a385c04
authored
Jun 06, 2012
by
Ben Straub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move git__date_parse declaration to util.h.
parent
2c2cde47
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
17 deletions
+12
-17
src/date.c
+1
-1
src/date.h
+0
-14
src/revparse.c
+0
-1
src/util.h
+10
-0
tests-clar/date/date.c
+1
-1
No files found.
src/date.c
View file @
8a385c04
...
...
@@ -10,7 +10,7 @@
#include <sys/time.h>
#endif
#include "
date
.h"
#include "
util
.h"
#include "cache.h"
#include "posix.h"
...
...
src/date.h
deleted
100644 → 0
View file @
2c2cde47
/*
* 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
src/revparse.c
View file @
8a385c04
...
...
@@ -9,7 +9,6 @@
#include "common.h"
#include "buffer.h"
#include "date.h"
#include "tree.h"
#include "git2.h"
...
...
src/util.h
View file @
8a385c04
...
...
@@ -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__ */
tests-clar/date/date.c
View file @
8a385c04
#include "clar_libgit2.h"
#include "
date
.h"
#include "
util
.h"
void
test_date_date__overflow
(
void
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment