Skip to content

Commit

Permalink
RobotPy always copies git data to your robot (#2576)
Browse files Browse the repository at this point in the history
  • Loading branch information
virtuald committed Feb 17, 2024
1 parent d0db246 commit ed20e41
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/docs/software/advanced-gradlerio/deploy-git-data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Including Git Data in Deploy

This article will explain how to include metadata from Git in robot code using the `gversion <https://github.com/lessthanoptimal/gversion-plugin>`__ Gradle plugin. This generates a file which can be used for accessing Git metadata in robot code. This can be used to track what revision of code is on the robot, such as by printing or logging it.

.. note:: For Python teams, Git metadata is always copied to your robot during the deploy process. You can use :external:py:func:`wpilib.deployinfo.getDeployData` to retrieve the stored information.

Installing gversion
-------------------

Expand Down

0 comments on commit ed20e41

Please sign in to comment.