@@ -251,7 +251,16 @@ contains detailed information about it based on the keyword argument:
251
251
252
252
* `options::DescribeOptions=DescribeOptions()`
253
253
254
- Equivalent to `git describe <commitish>`.
254
+ A git decription of a `commitish` object looks for the tag (by default, annotated,
255
+ although a search of all tags can be performed) which can be reached from `commitish`
256
+ which is most recent. If the tag is pointing to `commitish`, then only the tag is
257
+ included in the description. Otherwise, a suffix is included which contains the
258
+ number of commits between `commitish` and the most recent tag. If there is no such
259
+ tag, the default behavior is for the description to fail, although this can be
260
+ changed through `options`.
261
+
262
+ Equivalent to `git describe <commitish>`. See [`DescribeOptions`](@ref) for more
263
+ information.
255
264
"""
256
265
function GitDescribeResult (commitish:: GitObject ;
257
266
options:: DescribeOptions = DescribeOptions ())
@@ -265,14 +274,19 @@ end
265
274
"""
266
275
LibGit2.GitDescribeResult(repo::GitRepo; kwarg...)
267
276
268
- Produce a `GitDescribeResult` of the repository `repo`'s working directory,
269
- which can include all the commits and tags (or, for instance, HEAD only).
277
+ Produce a `GitDescribeResult` of the repository `repo`'s working directory.
270
278
The `GitDescribeResult` contains detailed information about the workdir based
271
279
on the keyword argument:
272
280
273
281
* `options::DescribeOptions=DescribeOptions()`
274
282
275
- Equivalent to `git describe`.
283
+ In this case, the description is run on HEAD, producing the most recent tag
284
+ which is an ancestor of HEAD. Afterwards, a status check on
285
+ the [`workdir`](@ref) is performed and if the `workdir` is dirty
286
+ (see [`isdirty`](@ref)) the description is also considered dirty.
287
+
288
+ Equivalent to `git describe`. See [`DescribeOptions`](@ref) for more
289
+ information.
276
290
"""
277
291
function GitDescribeResult (repo:: GitRepo ; options:: DescribeOptions = DescribeOptions ())
278
292
result_ptr_ptr = Ref {Ptr{Void}} (C_NULL )
0 commit comments