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 Indicates the request should supply the default number of context lines for added and removed lines.
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

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 starting changeset for the diff or null for the untilId's parent

@Nonnull public String getUntilId ()

Returns
  • the terminating changeset for the diff

public boolean isWithComments ()