Top Description Inners Fields Constructors Methods
org.eclipse.jgit.revwalk

public Class RevFlag

extends Object
Class Inheritance
Known Direct Subclasses
org.eclipse.jgit.revwalk.RevFlag.StaticRevFlag
Imports
java.text.MessageFormat, org.eclipse.jgit.internal.JGitText

Application level mark bit for org.eclipse.jgit.revwalk.RevObjects.

To create a flag use org.eclipse.jgit.revwalk.RevWalk#newFlag(String).

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv final int
pack-priv final String
public static final RevFlag
SEEN

Set on RevCommit instances added to RevWalk#pending queue.

public static final RevFlag
pack-priv final RevWalk

Constructor Summary

AccessConstructor and Description
pack-priv
RevFlag(RevWalk w, String n, int m)

Method Summary

Modifier and TypeMethod and Description
public RevWalk

Returns:

the walker this flag was allocated out of, and belongs to.
getRevWalk
()

Get the revision walk instance this flag was created from.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

maskback to summary
pack-priv final int mask
nameback to summary
pack-priv final String name
SEENback to summary
public static final RevFlag SEEN

Set on RevCommit instances added to RevWalk#pending queue.

We use this flag to avoid adding the same commit instance twice to our queue, especially if we reached it by more than one path.

This is a static flag. Its RevWalk is not available.

Since
3.0
UNINTERESTINGback to summary
public static final RevFlag UNINTERESTING

Uninteresting by RevWalk#markUninteresting(RevCommit).

We flag commits as uninteresting if the caller does not want commits reachable from a commit to RevWalk#markUninteresting(RevCommit). This flag is always carried into the commit's parents and is a key part of the "rev-list B --not A" feature; A is marked UNINTERESTING.

This is a static flag. Its RevWalk is not available.

walkerback to summary
pack-priv final RevWalk walker

Constructor Detail

RevFlagback to summary
pack-priv RevFlag(RevWalk w, String n, int m)

Method Detail

getRevWalkback to summary
public RevWalk getRevWalk()

Get the revision walk instance this flag was created from.

Returns:RevWalk

the walker this flag was allocated out of, and belongs to.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
org.eclipse.jgit.revwalk back to summary

pack-priv Class RevFlag.StaticRevFlag

extends RevFlag
Class Inheritance

Field Summary

Inherited from org.eclipse.jgit.revwalk.RevFlag:
masknameSEENUNINTERESTINGwalker

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public RevWalk
getRevWalk()

Overrides org.eclipse.jgit.revwalk.RevFlag.getRevWalk.

Get the revision walk instance this flag was created from.

Inherited from org.eclipse.jgit.revwalk.RevFlag:
toString

Constructor Detail

StaticRevFlagback to summary
pack-priv StaticRevFlag(String n, int m)

Method Detail

getRevWalkback to summary
public RevWalk getRevWalk()

Overrides org.eclipse.jgit.revwalk.RevFlag.getRevWalk.

Doc from org.eclipse.jgit.revwalk.RevFlag.getRevWalk.

Get the revision walk instance this flag was created from.

Returns:RevWalk

the walker this flag was allocated out of, and belongs to.

Annotations
@Override