You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/pages/using.rst
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -304,11 +304,6 @@ An example configuration file for utilising this feature:
304
304
Analyzing a repository on the local file system
305
305
-----------------------------------------------
306
306
307
-
.. warning::
308
-
During the analysis, Macaron can check out different commits, which can reset the index and working tree of the repository.
309
-
Therefore, any uncommitted changes in the repository need to be backed up to prevent loss (these include unstaged changes, staged changes and untracked files).
310
-
However, Macaron will not modify the history of the repository.
311
-
312
307
.. note::
313
308
We assume that the ``origin`` remote exists in the cloned repository and checkout the relevant commits from ``origin`` only.
314
309
@@ -378,7 +373,12 @@ With ``rest_of_args`` being the arguments to the ``analyze`` command (e.g. ``--b
378
373
379
374
The ``--local-repos-path/-lr`` flag tells Macaron to look into ``./boo/foo`` for local repositories. For more information, please see :ref:`Command Line Usage <cli-usage>`.
380
375
381
-
.. note:: If ``--local-repos-path/-lr`` is not provided, Macaron will looks inside ``<current_working_directory>/output/git_repos/local_repos/`` whenever you provide a local path to ``--repo-path/-rp``.
376
+
.. note:: If ``--local-repos-path/-lr`` is not provided, Macaron will look inside ``<current_working_directory>/output/git_repos/local_repos/`` whenever you provide a local path to ``--repo-path/-rp``.
377
+
378
+
.. warning::
379
+
Macaron by default analyzes the current state of the local repository. However, if the user provides a branch or commit hash as input, Macaron may reset the index and working tree of the repository to check out a specific commit.
380
+
Therefore, any uncommitted changes in the repository need to be backed up to prevent loss (these include unstaged changes, staged changes and untracked files).
381
+
However, Macaron will not modify the history of the repository.
0 commit comments