Skip to content

replace to be deprecated JGit's getWhen() in GitRepository #4782

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

/*
* Copyright (c) 2008, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2008, 2025, Oracle and/or its affiliates. All rights reserved.
* Portions Copyright (c) 2017, 2020, Chris Fraire <[email protected]>.
* Portions Copyright (c) 2019, Krystof Tulinger <[email protected]>.
* Portions Copyright (c) 2023, Ric Harris <[email protected]>.
Expand Down Expand Up @@ -533,7 +533,7 @@ public void traverseHistory(File file, String sinceRevision, String tillRevision
for (RevCommit commit : walk) {
CommitInfo commitInfo = new CommitInfo(commit.getId().name(),
commit.getId().abbreviate(GIT_ABBREV_LEN).name(),
commit.getAuthorIdent().getWhen(), commit.getAuthorIdent().getName(),
Date.from(commit.getAuthorIdent().getWhenAsInstant()), commit.getAuthorIdent().getName(),
commit.getAuthorIdent().getEmailAddress(), commit.getFullMessage());

for (ChangesetVisitor visitor : visitors) {
Expand Down
Loading