public class

DiffRequest

extends AbstractDiffRequest
java.lang.Object
   ↳ com.atlassian.stash.content.AbstractDiffRequest
     ↳ com.atlassian.stash.content.DiffRequest

Class Overview

Request arguments for streamDiff(DiffRequest, DiffContentCallback).

Summary

Nested Classes
class DiffRequest.Builder  
Constants
int DEFAULT_CONTEXT_LINES This constant is deprecated. in 3.11 for removal in 4.0. Use DEFAULT_CONTEXT_LINES instead.
[Expand]
Inherited Constants
From class com.atlassian.stash.content.AbstractDiffRequest
Public Methods
@Nonnull Repository getRepository()
@Nullable String getSinceId()
@Nonnull String getUntilId()
boolean isWithComments()
[Expand]
Inherited Methods
From class com.atlassian.stash.content.AbstractDiffRequest
From class java.lang.Object

Constants

public static final int DEFAULT_CONTEXT_LINES

This constant is deprecated.
in 3.11 for removal in 4.0. Use DEFAULT_CONTEXT_LINES instead.

Indicates the request should supply the default number of context lines for added and removed lines. The default is configurable, so it may be changed by a system administrator. The shipped setting is 10 lines.

Constant Value: -1 (0xffffffff)

Public Methods

@Nonnull public Repository getRepository ()

Returns
  • the repository to use

@Nullable public String getSinceId ()

Returns
  • the "since" commit for the diff or null for the untilId's parent

@Nonnull public String getUntilId ()

Returns
  • the "until" commit for the diff

public boolean isWithComments ()