Fundamentals
Indexes and ranges
Working with rapid-git means working with indexes. In the following paragraphs and pages we will often use this very word. It may makes you wonder: What are these indexes? Well, indexes always refer to the position of a file, directory or branch in the output of git status
and git branch
. They start at 1, not at 0 and can form ranges. These so called ranges can be defined using numbers and dots notation.
Available notations
Notation
Description
#
select a single list entry
..
select all list entries
..#
e.g.
..5
select the first entry up to the fifth one
#..
e.g.
3..
select the third entry up to the last one
#..#
e.g.
4..7
select the fourth entry up to the seventh entry
Support information
- Committing commands support simple indexes as well as ranges
- Committing commands allow multiple arguments to be passed
- Branching commands mostly support a single index