Getting started with log
Let's quickly build another project and repository:
Figure 9.1: Create a new repository
Next, as we have done before, we'll clone this repository to our local machine:
Figure 9.2: Cloning the demo program
With this local repository, we can begin to examine its commits using log
. To do so, of course, we need to create a program and make some commits.
The LogDemo program
Create a program in the LogDemo
directory. Change the program to be public and build and run it to make sure it is working:
Figure 9.3: Testing the program
I'm going to create the same calculator
class we've seen before, with the same commits after each tiny function. I'll spare you having to look at all that and I'll just put it into the repository.
Having added all the functions, let's give it a spin:
using System;
namespace LogDemo
{
public class Program
{
static void Main(string[] args...