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
88d035bd
Commit
88d035bd
authored
Nov 04, 2010
by
Dave Borowitz
Committed by
Vicent Marti
Nov 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update commit_time along with committer.
parent
f24fa088
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/commit.c
+1
-2
tests/t0403-write.c
+1
-0
No files found.
src/commit.c
View file @
88d035bd
...
@@ -282,6 +282,7 @@ void git_commit_set_committer(git_commit *commit, const char *name, const char *
...
@@ -282,6 +282,7 @@ void git_commit_set_committer(git_commit *commit, const char *name, const char *
git_person__free
(
commit
->
committer
);
git_person__free
(
commit
->
committer
);
commit
->
committer
=
git_person__new
(
name
,
email
,
time
);
commit
->
committer
=
git_person__new
(
name
,
email
,
time
);
commit
->
commit_time
=
time
;
}
}
void
git_commit_set_message
(
git_commit
*
commit
,
const
char
*
message
)
void
git_commit_set_message
(
git_commit
*
commit
,
const
char
*
message
)
...
@@ -317,5 +318,3 @@ void git_commit_add_parent(git_commit *commit, git_commit *new_parent)
...
@@ -317,5 +318,3 @@ void git_commit_add_parent(git_commit *commit, git_commit *new_parent)
node
->
next
=
commit
->
parents
;
node
->
next
=
commit
->
parents
;
commit
->
parents
=
node
;
commit
->
parents
=
node
;
}
}
tests/t0403-write.c
View file @
88d035bd
...
@@ -58,6 +58,7 @@ BEGIN_TEST(writenew_test)
...
@@ -58,6 +58,7 @@ BEGIN_TEST(writenew_test)
must_be_true
(
strcmp
(
committer
->
name
,
COMMITTER_NAME
)
==
0
);
must_be_true
(
strcmp
(
committer
->
name
,
COMMITTER_NAME
)
==
0
);
must_be_true
(
strcmp
(
committer
->
email
,
COMMITTER_EMAIL
)
==
0
);
must_be_true
(
strcmp
(
committer
->
email
,
COMMITTER_EMAIL
)
==
0
);
must_be_true
(
committer
->
time
==
123456789
);
must_be_true
(
committer
->
time
==
123456789
);
must_be_true
(
git_commit_time
(
commit
)
==
123456789
);
must_be_true
(
strcmp
(
git_commit_message
(
commit
),
COMMIT_MESSAGE
)
==
0
);
must_be_true
(
strcmp
(
git_commit_message
(
commit
),
COMMIT_MESSAGE
)
==
0
);
...
...
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