72
u/regular_lamp Sep 21 '24
You think "what Idiot wrote this???" then you click on that and you see it was either you or alternatively it gets attributed to someone who didn't actually write that code but ran a code formatter on it.
7
5
u/cinderblock63 Sep 21 '24
This is why the linter is one of the first things I enable on new projects.
4
1
1
52
u/SuperheropugReal Sep 21 '24
Git blame. Ask Linus why it's called that
21
u/Noch_ein_Kamel Sep 21 '24
If you ask him also ask him why he didn't copy the praise command as well
9
Sep 21 '24
That's easy, because the only code that deserves praising is the code linus wrote, and yku can't praise your own code
3
Sep 22 '24 edited Oct 19 '24
payment disagreeable lush depend wrong license capable grey chop slimy
This post was mass deleted and anonymized with Redact
3
-7
u/_g550_ Sep 21 '24
Linus doesn’t own the thing anymore. It’s Microsoft.
6
u/mcprogrammer Sep 22 '24
The blame command is from git though. GitHub just exposes the same functionality and uses the same name to be consistent.
1
2
u/The_King_Of_Muffins Sep 22 '24 edited Sep 24 '24
Microsoft has little to do with the development of git. Github is just a tool which implements git's features.
1
2
1
15
12
u/martinbean Sep 21 '24
It’s not so much a GitHub feature but a Git feature. “Blame” basically just shows you who the person was responsible for the last change to whatever file or line(s) you’re looking at.
13
u/Standard-Customer-58 Sep 21 '24
This Is more generic feature of git. The blame command permit you to understand Who touch the code and when (using the commit id). If you use tools per repository-mining you can do interesting thing with It.
5
u/cinderblock63 Sep 21 '24
Git has the full history of your code. It can walk back, line by line, and show you not only when that particular line was last changed, but also by whom. This can be useful to see whose code you’re stepping on, or who you need to go find and blame for the mistake.
3
2
u/GeekCornerReddit Sep 21 '24
Basically shows up who and when was edited every line of a specific file
1
1
u/i4get98 Sep 21 '24
Works better when you’re working on a team. If not, it’s more of a self loathing button.
1
1
u/mattk404 Sep 21 '24
Ai feature that tells you the source of all logic errors, typos and code smells /s
1
u/nekokattt Sep 21 '24
git blame provides this within git itself. It just looks at who last diffed the given lines of code and links back to the commit that did it.
1
u/nekokattt Sep 21 '24
git blame provides this within git itself. It just looks at who last diffed the given lines of code and links back to the commit that did it.
1
1
1
1
1
1
1
u/quinnshanahan Sep 24 '24
Does anyone else remember svn praise that did the same thing as blame but was there just in case you were in a good mood
1
-1
-4
u/shgysk8zer0 Sep 21 '24
Is that even new? IDK... I almost exclusively work locally + git, and really only use GitHub as a repo host and for pull requests. In git, I've known about blame for like a decade.
8
u/drugmart87 Sep 21 '24
I believe they're saying they are new to GitHub, not that the Git blame feature is new.
-4
u/shgysk8zer0 Sep 21 '24
Maybe. "New to GitHub" lacks a subject, and the next sentence has the subject of the blame feature. I understood it in the same way as "New to GitHub, how does blame work?" (Note the punctuation).
But... Yeah, I can see that.
0
u/Houdinii1984 Sep 21 '24
Lol, I think everyone was with you at first based on the comments. That's where my mind went until you laid it all out for me grammatically, lol.
2
u/shgysk8zer0 Sep 21 '24
I'll never understand why people gang up and downvote my completely benign and transparent comments on dev subreddits. Seriously, why downvote "it was ambiguous, and maybe I misunderstood"?
It's not like I'm wrong (other than maybe how I understood the post). It's not like I'm being mean/rude. The response I gave was perfectly relevant to what I was replying to, and even admitting maybe I had misunderstood the post. There's no reason for it to be downvoted at all.
And why should me saying why I found it to be ambiguous make a difference? "New to GitHub", in fact, does not have a subject, so what you interpret as the subject does, in fact, change the question being asked. It could be "I'm new to GitHub" or "Something new to GitHub".
1
u/Houdinii1984 Sep 21 '24
I thought it was a new feature. I figured they just didn't have it as a button or something. I do blames in my IDE. I'm used to it, though. I guess for those that guessed correctly felt it was obvious.
2
u/shgysk8zer0 Sep 21 '24
OP hasn't responded that I can see. It's still ambiguous at this point as to which guess is correct. In hindsight, "I'm new to GitHub" seems more likely, but "Something new to GitHub" is still possible without more info/context from the author. We don't know which is correct, just guessing.
And that kinda makes it worse. I admitted I may have misunderstood it. If I'm being downvoted for supposedly guessing wrong, it'd imply that others are taking their assumptions as fact.
1
u/Houdinii1984 Sep 21 '24
I think it's funny that GitHub has this button, but it's apparently not that noticeable either way since there aren't legions of people talking about having seen it. I'm sure the OP is a newer user to GH. I just can't believe I've never seen that button in all my time there, lmao. The amount of times I could have used it, lol.
-5
u/jamesaddicted Sep 21 '24
I want sync My files with visual studio code, how we can do?
4
u/haikusbot Sep 21 '24
I want sync My files
With visual studio
Code, how we can do?
- jamesaddicted
I detect haikus. And sometimes, successfully. Learn more about me.
Opt out of replies: "haikusbot opt out" | Delete my comment: "haikusbot delete"
1
u/QuickSilver010 Sep 21 '24
good bot
1
u/B0tRank Sep 21 '24
Thank you, QuickSilver010, for voting on haikusbot.
This bot wants to find the best and worst bots on Reddit. You can view results here.
Even if I don't reply to your comment, I'm still listening for votes. Check the webpage to see if your vote registered!
2
191
u/w00tboodle Sep 21 '24
It just lets you know who is responsible (who's to blame), for the lines of code. It lists who made the last change.