Skip to content

Missing toString for FetchResult and RebaseResult relied on by PullResult #256

@harrisric

Description

@harrisric

Version

7.6

Operating System

Windows

Bug description

Perform a Pull using JGit with rebase on, e.g.

PullResult result = git.pull().setRebase(true).call();
log.debug("pull result was" + result);

Actual behavior

When logging or debugging a PullResult using rebase you end up with e.g.

org.eclipse.jgit.transport.FetchResult@359d2e00
org.eclipse.jgit.api.RebaseResult@7bbf623a

Expected behavior

Expect that the result should be descriptive of what has happened during the command.

Relevant log output

org.eclipse.jgit.transport.FetchResult@359d2e00
org.eclipse.jgit.api.RebaseResult@7bbf623a

Other information

Relates to the toString here which is a composite of the state:

There is a useful toString for MergeResult but not for FetchResult or RebaseResult which therefore simply defer to Object.toString

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions