Skip to content

Commit

Permalink
Enable using cloned repo as workspace (#1535)
Browse files Browse the repository at this point in the history
The guide
http://docs.ros.org/en/rolling/Installation/Maintaining-a-Source-Checkout.html
explains how to manually download the ros2.repos file to maintain a
source checkout. Another way to maintain a source checkout is to clone
this repository and `git pull` updates to the repos file.

This PR makes that alternative a little more convenient. The .gitignore
file ignores the default names of folders created by colcon, and the src
folder is created with just a .gitkeep file so that `git status` on the
repository doesn't try to show the status of subfolders of `src`.

Signed-off-by: Shane Loretz <[email protected]>
  • Loading branch information
sloretz authored Mar 26, 2024
1 parent 7e05759 commit 5bad2ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Ignore default names for colcon created folders
build
install
log

# Ignore everything in src except a .gitkeep file
src/*
!src/.gitkeep
Empty file added src/.gitkeep
Empty file.

0 comments on commit 5bad2ec

Please sign in to comment.