-
Notifications
You must be signed in to change notification settings - Fork 25
Implement hands on hp-view-graph #82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a new hands-on exercise for viewing Git graphs. The exercise creates a sample Git repository with multiple commits to demonstrate Git history visualization.
- Adds a new
view_graph.pymodule with adownload()function that initializes a Git repository - Creates sample files (
fruits.txt,colours.txt,shapes.txt) with commits to build a Git history - Implements a structured exercise workflow using existing utility functions for file and Git operations
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
woojiahao
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nits about removing over-explanatory comments
| os.makedirs("things") | ||
| os.chdir("things") | ||
|
|
||
| # Initialize repository |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| # Initialize repository |
| # Initialize repository | ||
| init(verbose) | ||
|
|
||
| # Initial fruits file and commit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| # Initial fruits file and commit |
| add(["fruits.txt"], verbose) | ||
| commit("Add fruits.txt", verbose) | ||
|
|
||
| # Append figs, stage and commit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| # Append figs, stage and commit |
| add(["fruits.txt"], verbose) | ||
| commit("Insert figs into fruits.txt", verbose) | ||
|
|
||
| # Add colours and shapes together and commit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| # Add colours and shapes together and commit |
Exercise Review
Exercise Discussion
Link the exercise discussion issue
Checklist
Git-Masteryorganization, have you created a request for it?repo-smithto validate the exercise grading scheme?test-download.sh?git-autograder?app?