@@ -217,6 +217,11 @@ public GitVersionConfig makeConfig() {
217217 );
218218 }
219219
220+ /** @return The tag prefix used when filtering tags */
221+ public String getTagPrefix () {
222+ return this .tagPrefix ;
223+ }
224+
220225 /**
221226 * Sets the tag prefix to use when filtering tags. This will queue the {@linkplain #getInfo() info} to be
222227 * recalculated the next time it is needed.
@@ -228,6 +233,17 @@ public void setTagPrefix(@Nullable String tagPrefix) {
228233 this .info .reset ();
229234 }
230235
236+ /**
237+ * Sets the match filter to use when filtering tags. This will queue the {@linkplain #getInfo() info} to be
238+ * recalculated the next time it is needed.
239+ *
240+ * @param matchFilter The match filters
241+ * @see #setMatchFilters(String...)
242+ */
243+ public void setMatchFilter (String matchFilter ) {
244+ this .setMatchFilters (matchFilter );
245+ }
246+
231247 /**
232248 * Sets the match filters to use when filtering tags. This will queue the {@linkplain #getInfo() info} to be
233249 * recalculated the next time it is needed.
@@ -239,6 +255,17 @@ public void setMatchFilters(String... matchFilters) {
239255 this .addMatchFilters (matchFilters );
240256 }
241257
258+ /**
259+ * Adds the given match filter to the existing filters to use. This will queue the {@linkplain #getInfo() info} to
260+ * be recalculated the next time it is needed.
261+ *
262+ * @param matchFilter The match filters
263+ * @see #addMatchFilters(String...)
264+ */
265+ public void addMatchFilter (String matchFilter ) {
266+ this .addMatchFilters (matchFilter );
267+ }
268+
242269 /**
243270 * Adds the given match filters to the existing filters to use. This will queue the {@linkplain #getInfo() info} to
244271 * be recalculated the next time it is needed.
@@ -250,6 +277,16 @@ public void addMatchFilters(String... matchFilters) {
250277 this .info .reset ();
251278 }
252279
280+ /**
281+ * Sets the marker file name to use. This will queue the {@linkplain #getInfo() info} to be recalculated the next
282+ * time it is needed.
283+ *
284+ * @param markerName The marker file names
285+ */
286+ public void setMarkerName (String markerName ) {
287+ this .setMarkerName (new String [] {markerName });
288+ }
289+
253290 /**
254291 * Sets the marker file names to use. This will queue the {@linkplain #getInfo() info} to be recalculated the next
255292 * time it is needed.
@@ -264,11 +301,24 @@ public void setMarkerName(String... markerName) {
264301 this .info .reset ();
265302 }
266303
304+ /**
305+ * Sets the ignore file name to use. This will queue the {@linkplain #getInfo() info} to be recalculated the next
306+ * time it is needed.
307+ *
308+ * @param ignoreName The ignore file names
309+ * @see #DEFAULT_IGNORE_FILE
310+ * @see #setIgnoreName(String...)
311+ */
312+ public void setIgnoreName (String ignoreName ) {
313+ this .setIgnoreName (new String [] {ignoreName });
314+ }
315+
267316 /**
268317 * Sets the ignore file names to use. This will queue the {@linkplain #getInfo() info} to be recalculated the next
269318 * time it is needed.
270319 *
271320 * @param ignoreName The ignore file names
321+ * @see #DEFAULT_IGNORE_FILE
272322 */
273323 public void setIgnoreName (String ... ignoreName ) {
274324 this .ignoreName .clear ();
@@ -279,8 +329,18 @@ public void setIgnoreName(String... ignoreName) {
279329 }
280330
281331 /**
282- * Sets the directories to ignore. This will queue the {@linkplain #getInfo() info} to be recalculated the next
283- * time it is needed.
332+ * Sets the directory to ignore. This will queue the {@linkplain #getInfo() info} to be recalculated the next time
333+ * it is needed.
334+ *
335+ * @param ignoreDir The ignored directories
336+ */
337+ public void setIgnoreDir (File ignoreDir ) {
338+ this .setIgnoreDir (new File [] {ignoreDir });
339+ }
340+
341+ /**
342+ * Sets the directories to ignore. This will queue the {@linkplain #getInfo() info} to be recalculated the next time
343+ * it is needed.
284344 *
285345 * @param ignoreDir The ignored directories
286346 */
0 commit comments