News for hackers. Stuff that matters.
Re:Bit (1.0) – a modern Git CLI in Go by gcarvalho on Friday February 26, 2021 @11:29PM (#26282574)
Looks very interesting, congrats!

A common mistake I have come across a few times (and seen others fall victim to as well) is forgetting to stage a file that's necessary for the new feature or fix they just committed.

Do you think that identifying these cases and suggesting to stage them is something in line with the project? (e.g. while trying to commit: "You imported file X in a file you staged, but it is currently being ignored, do you wish to stage it as well?")

Re:Bit (1.0) – a modern Git CLI in Go by kevsim on Saturday February 27, 2021 @06:29AM (#26284155)
I think I'd even take it a step further and not rely on the fact that it's been imported (which sounds a bit fragile and language specific). The number of times I have a new local that I don't want to add is far far smaller than the number of times I have a new local file that I forgot to add, so I'd want to be warned whenever I'm pushing with unstaged local files.

We use a git hook for this currently and it's super useful.

Re:Bit (1.0) – a modern Git CLI in Go by lanstin on Saturday February 27, 2021 @01:36PM (#26286985)
That does sound useful. I usually have a raft of local files with logs or different test scripts but not with the main extension of the repo (e.g ten .plan files and that one new .tf file , or seventeen config files but that one go file). And forgetting to add that new file is our top build failure I think.
Re:Bit (1.0) – a modern Git CLI in Go by kevsim on Wednesday March 03, 2021 @02:46AM (#26325769)
Local files like that are fine, just keep them in your .gitignore
Re:Bit (1.0) – a modern Git CLI in Go by spockz on Saturday February 27, 2021 @05:46AM (#26283958)
Would something along the lines of looking at the tokens in the stages commits and then searching whether there are changes that contain those tokens work? Maybe you also need to search for those tokens in files.

Something like an IDE might be better suited for detecting these because it knows which symbols refer to where.

Re:Bit (1.0) – a modern Git CLI in Go by chriswalz on Friday February 26, 2021 @11:52PM (#26282727)
Yes, I think something like this could be done. Feel free to file a feature request