Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*/.gfs/
*/*/.gfs/
.DS_Store
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ after_success:
- bash <(curl -s https://codecov.io/bash)

cache:
bundler: true
directories: node_modules
45 changes: 19 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,27 @@
## Git-From-Scratch
# GitVisualize

I work with `git` for like a lot of time and listening to the terms that I don'
t have enough knowledge gives me a hit.
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.7.3.

So, here I am, figuring out how git may work.
It is just a trial where I will try to figure out how `git` `may` work. Since I am not
interested in reading the original mirror of @git so I thought of challenging myself a bit.
## Development server

## Vision
`A git that everyone can understand`. It will have the necessary documentation about the hypothesis
proposed for the project.
Since It is just a timepass project, therefore I will be using it to `Version Control` a simple
file that contains data as
```
1
2
3
4
```
Any change in the file will be checked and then stored. I will make it a heavy VCS and tnen
make it comply with space efficiency (ik it is difficult to do, when you're going on with
the intuition that your hypothesis is correct :P)
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.

## Code scaffolding

## Language
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.

I will be using Javascript for making this project. I don't have any specific reason for
choosing this language. Let's just go with the flow :P
## Build

## Author
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.

Manish Devgan
@gabru-md
## Running unit tests

Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Running end-to-end tests

Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
27 changes: 0 additions & 27 deletions git-visualize/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion git-visualize/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"zone.js": "^0.8.19"
},
"devDependencies": {
"@angular/cli": "~1.7.3",
"@angular/cli": "^1.7.4",
"@angular/compiler-cli": "^5.2.0",
"@angular/language-service": "^5.2.0",
"@types/jasmine": "~2.8.3",
Expand Down
17 changes: 10 additions & 7 deletions git-visualize/src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
import { TestBed, async } from '@angular/core/testing';
import { AppComponent } from './app.component';
import { TreeComponent } from './tree/tree.component';
import { TerminalComponent } from './terminal/terminal.component';
import { FormsModule } from '@angular/forms';

describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
AppComponent
AppComponent,
TerminalComponent,
TreeComponent
],
imports: [
FormsModule
],
}).compileComponents();
}));
Expand All @@ -18,10 +27,4 @@ describe('AppComponent', () => {
const app = fixture.debugElement.componentInstance;
expect(app.title).toEqual('app');
}));
it('should render title in a h1 tag', async(() => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.debugElement.nativeElement;
expect(compiled.querySelector('h1').textContent).toContain('Welcome to app!');
}));
});
5 changes: 4 additions & 1 deletion git-visualize/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Component } from '@angular/core';
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { TreeComponent } from './tree/tree.component';
import { TerminalComponent } from './terminal/terminal.component';
import { FormsModule } from '@angular/forms';

@Component({
selector: 'app-root',
Expand Down
6 changes: 1 addition & 5 deletions git-visualize/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { TreeComponent } from './tree/tree.component';
import { TerminalComponent } from './terminal/terminal.component';
import { CommunicateService } from './communicate.service';


import {NgbModule} from '@ng-bootstrap/ng-bootstrap';


Expand All @@ -23,9 +22,6 @@ import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
NgbModule.forRoot()
],
providers: [CommunicateService],
bootstrap: [AppComponent],
schemas: [
CUSTOM_ELEMENTS_SCHEMA
]
bootstrap: [AppComponent]
})
export class AppModule { }
4 changes: 2 additions & 2 deletions git-visualize/src/app/communicate.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { TestBed, inject } from '@angular/core/testing';

import { Http, HttpModule } from '@angular/http';
import { CommunicateService } from './communicate.service';

describe('CommunicateService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [CommunicateService]
providers: [ CommunicateService ]
});
});

Expand Down
2 changes: 1 addition & 1 deletion git-visualize/src/app/terminal/terminal.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<span class="user-command"><span class="admin">git@yogdaan $~ </span>{{command}}</span>
</li>
<li>
<span class="user-command"><span class="admin">git@yogdaan $~ </span><input id="input-cli" type="text" width="100" [(ngModel)]="cli" (keypress)="executeCommand($event)" name="cli"></span>
<span class="user-command"><span class="admin">git@yogdaan $~ </span><input id="input-cli" type="text" width="100" (ngModel)="cli" (keypress)="executeCommand($event)" name="cli"></span>
</li>
</ul>
</div>
Expand Down
6 changes: 4 additions & 2 deletions git-visualize/src/app/terminal/terminal.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { CommunicateService } from '../communicate.service';
import { TerminalComponent } from './terminal.component';
import { FormsModule } from '@angular/forms';

describe('TerminalComponent', () => {
let component: TerminalComponent;
let fixture: ComponentFixture<TerminalComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ TerminalComponent ]
declarations: [ TerminalComponent ],
providers: [ CommunicateService ]
})
.compileComponents();
}));
Expand Down
4 changes: 3 additions & 1 deletion git-visualize/src/app/terminal/terminal.component.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { Component, OnInit, Renderer2 } from '@angular/core';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { CommunicateService } from '../communicate.service';
import { FormsModule } from '@angular/forms';

@Component({
selector: 'app-terminal',
templateUrl: './terminal.component.html',
styleUrls: ['./terminal.component.css']
styleUrls: ['./terminal.component.css'],
providers: [ CommunicateService ]
})
export class TerminalComponent implements OnInit {

Expand Down
24 changes: 0 additions & 24 deletions package.json

This file was deleted.