Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thesmallpixel/gourcemultirepo
Gource shell script to combine all repository changes in one file
https://github.com/thesmallpixel/gourcemultirepo
Last synced: 5 days ago
JSON representation
Gource shell script to combine all repository changes in one file
- Host: GitHub
- URL: https://github.com/thesmallpixel/gourcemultirepo
- Owner: TheSmallPixel
- License: mit
- Created: 2023-12-01T12:02:10.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-01T12:15:13.000Z (about 1 year ago)
- Last Synced: 2023-12-01T13:54:10.366Z (about 1 year ago)
- Language: PowerShell
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gource Multi Repo
Enjoy seeing the progress you've made over all your years of development in just one short animation!
Install Gource:
```
https://gource.io/
```
Create a new shellscript *.ps1:
```
# Define the base path
$basePath = "D:\Projects" # Replace with your actual path# Get all directories in the base path
$directories = Get-ChildItem -Path $basePath -Directory# Initialize a counter for naming log files
$logCounter = 1# Iterate through each directory and run gource command
foreach ($dir in $directories) {
# Change to the directory
Set-Location $dir.FullName# Run the gource command
$logFilePath = "$basePath\gource$logCounter.txt"
gource --output-custom-log $logFilePath $basePath\$dir
# Print log file creation
Write-Host "Gource output for $dir to: $basePath\$dir"
# Increase the counter for the next iteration
$logCounter++
}# Change back to the base path
Set-Location $basePath# Combine and sort all log files
Get-ChildItem -Filter "gource*.txt" |
Foreach-Object { Get-Content $_.FullName } |
Sort-Object { $_.Split("|")[0] -as [int] } |
Set-Content "combined.txt"# Run gource with the combined log file
gource combined.txt --seconds-per-day 0.01
```
Run the script
```
.\\GourceCombine.ps1
```# Enjoy 🚀
![image](https://github.com/TheSmallPixel/GourceMultiRepo/assets/25280244/f18a7e22-0cf1-44da-b49a-3fac7ccf3459)