5
166
Fork
You've already forked Gitte
16

Default to current working directory when opening Gitte from the command line #179

Open
opened 2026年07月08日 11:45:52 +02:00 by pieq · 2 comments

Hello!

When running Gitte from the command line, it takes a path argument to open Gitte with the git repo at the given path. If no path argument is passed, Gitte opens its default window where you can select a project. It would be nice if it could open the Git project under the current working directory when called from the command line.

This way, running

$ gitte

would be equivalent to

$ gitte .

to quickly start working in the project we're already in.

Hello! When running Gitte from the command line, it takes a `path` argument to open Gitte with the git repo at the given path. If no `path` argument is passed, Gitte opens its default window where you can select a project. It would be nice if it could open the Git project under the current working directory when called from the command line. This way, running ``` $ gitte ``` would be equivalent to ``` $ gitte . ``` to quickly start working in the project we're already in.
Contributor
Copy link

Wouldn't it be easier that you define a shell function that does that for you?

Currently I can start gitte from anywhere within the filesystem without errors. Now start gitte . when you're not inside a Git repository and you'll get an error. I don't want that as default behavior.

Wouldn't it be easier that you define a shell function that does that for you? Currently I can start `gitte` from anywhere within the filesystem without errors. Now start `gitte .` when you're not inside a Git repository and you'll get an error. I don't want that as default behavior.
Author
Copy link

The idea was to probe first to see if cwd was indeed a git repo. If it is, open it in gitte, if it's not, open the default screen.

I guess I can create an alias, indeed, but since git cola is handling that (if you type git cola in a dir without a git repo, it opens the default screen as well), I thought it would be interesting to have this feature in gitte as well.

The idea was to probe first to see if cwd was indeed a git repo. If it is, open it in gitte, if it's not, open the default screen. I guess I can create an alias, indeed, but since git cola is handling that (if you type `git cola` in a dir without a git repo, it opens the default screen as well), I thought it would be interesting to have this feature in gitte as well.
Sign in to join this conversation.
No Branch/Tag specified
main
next
0.8.1
0.8.0
0.7.2
0.7.1
0.7.0
0.6.1
0.6.0
0.5.0
0.4.1
0.4.0
0.3.0
0.2.0
0.1.10
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ckruse/Gitte#179
Reference in a new issue
ckruse/Gitte
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?